From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From turc0033 at gmail.com Sat Aug 13 23:57:41 2011 From: turc0033 at gmail.com (Milton T.) Date: Sun, 14 Aug 2011 00:57:41 -0500 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on > Windows 7 64 bit, and Java crashes! I googled for this problem and found > that many programmers suffer from it, but no solution. Have anyone found a > solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.dec at gmail.com Sun Aug 14 00:36:51 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Sun, 14 Aug 2011 08:36:51 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Hi, I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. Look for it and try it, maybe helps. Regards Mariusz ----- Original Message ----- From: Milton T. To: Osama Salah ; rxtx at qbang.org Sent: Sunday, August 14, 2011 7:57 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx ------------------------------------------------------------------------------ _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Sun Aug 14 02:55:27 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 10:55:27 +0200 Subject: [Rxtx] Version Output In-Reply-To: References: Message-ID: <4E478D7F.2050101@t-online.de> Hi Luke, if You are using RXTX-2.1-7 and You output on the console like this: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Experimental: JNI_OnLoad called. then (as i can see) set in File RXTXCommDriver.java private final static boolean devel = false; // it is set to true and comment out in File SerialImp.c the line: printf("Experimental: JNI_OnLoad called.\n"); then compile the code again. Regards, Alfred On 2011-08-13 17:02, Luke Morgan wrote: > Hi, > > I'm implementing RXTX in a project and I've tried in vain to find out how to > disable the version output generated by RXTX that gets sent to System.out. > I've tried passing the following to the JVM: > > -Dgnu.io.rxtx.NoVersionOutput=true > > ... to no avail. Any advice/help would be much appreciated. > > Many thanks, > Luke. > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 06:14:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Sun, 14 Aug 2011 14:14:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Message-ID: <4E47BC3F.6060101@t-online.de> Hello, First problem on MacOSX and Linux x64: sizeof(long) is 4 but sizof(jlong) is 8 (= sizeof(size_t)). Second problem: in SerialImp.c: the "event_info_struct eis" is local to the "eventLopp" methode, but is used globaly. A "static" helps (or also a malloc (more threadsave?)) JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { ... static struct event_info_struct eis; ... } Now the "close"-bug is gone on my MacOSX. Third problem: int an jint problem: in C int is from 2 bytes to ... but jint is definitvely 4 bytes. This should be changed and a simply check like switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} can avoid some bugs Regards, Alfred On 2011-08-14 07:57, Milton T. wrote: > This also happens on the Mac OSX. I think that i'm going to look into this > issue sometime next month. > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > >> Hello, >> I think everyone knows about this issue; RXTX can't close serial ports on >> Windows 7 64 bit, and Java crashes! I googled for this problem and found >> that many programmers suffer from it, but no solution. Have anyone found a >> solution for this problem ? >> Thanks >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From alfred.fuchs at t-online.de Sun Aug 14 18:48:25 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 02:48:25 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> Message-ID: <4E486CD9.9010408@t-online.de> OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct and free it in finalize_event_info_struct() (hope this is the right place to do this). This fixes the "close" bug on my MacOSX 1.5 (64 bit) and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, where necessary 4) replaced get_java_var with more specific methodes: f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > > ----- Original Message ----- > From: Milton T. > To: Osama Salah ; rxtx at qbang.org > Sent: Sunday, August 14, 2011 7:57 AM > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah wrote: > > Hello, > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? > Thanks > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialImpDiff.tar.gz Type: application/x-gzip Size: 5670 bytes Desc: not available URL: From os.dexterity at ymail.com Sun Aug 14 23:25:33 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sun, 14 Aug 2011 22:25:33 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E486CD9.9010408@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> Message-ID: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: "C:\Program' is not recognized as an internal or external command" it seems that spaces in file names are not allowed inside "Makefile"? :( So please send the compiled files, or upload them to a file-hosting server. Thanks, Osama Salah ________________________________ From: Alfred Fuchs To: M.Dec-GM ; rxtx at qbang.org Sent: Monday, August 15, 2011 2:48 AM Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit OK, attachements are too big, so only the compressed diffs. sorry! Hi, source: rxtx-2.2pre2 from 2011-08-14. i made some little changes to the code: File SerialImp.c: 1) in RXTXPort(eventLoop): malloc the event_info_struct ? ? and free it in finalize_event_info_struct() ? ? (hope this is the right place to do this). ??? ? ? This fixes the "close" bug on my MacOSX 1.5 (64 bit) ? ? and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). 2) set the "eis" field to NULL in finalize_event_info_struct. 3) replaced all long with jlong, int with jint and int with pid_t, ? ? where necessary 4) replaced get_java_var with more specific methodes: ? ? f.e get_java_var_fd, get_java_var_eis, etc. 5) added a compile-time check for critical variable-sizes. File SerialImp.h: added the function declartions. Dont know if You have usage for this code. Regards, Alfred On 2011-08-14 08:36, M.Dec-GM wrote: > Hi, > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. > Look for it and try it, maybe helps. > Regards > Mariusz > > >? ? ----- Original Message ----- >? ? From: Milton T. >? ? To: Osama Salah ; rxtx at qbang.org >? ? Sent: Sunday, August 14, 2011 7:57 AM >? ? Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > >? ? This also happens on the Mac OSX.? I think that i'm going to look into this issue sometime next month. > > >? ? On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah? wrote: > >? ? ? Hello, >? ? ? I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >? ? ? Thanks > >? ? ? _______________________________________________ >? ? ? Rxtx mailing list >? ? ? Rxtx at qbang.org >? ? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > ------------------------------------------------------------------------------ > > >? ? _______________________________________________ >? ? Rxtx mailing list >? ? Rxtx at qbang.org >? ? http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.crum at sandglass-software.com Mon Aug 15 02:42:48 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 09:42:48 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> Message-ID: <4E48DC08.8000801@sandglass-software.com> Don't forget we have a bug tracker for this sort of thing. -Adrian On 8/15/2011 6:25 AM, Osama Salah wrote: > Thanks Alfred, but I couldn't recompile under Windows, the following > message is displayed: > > "C:\Program' is not recognized as an internal or external command" > > it seems that spaces in file names are not allowed inside "Makefile" :( > > So please send the compiled files, or upload them to a file-hosting > server. > > Thanks, > Osama Salah > > ------------------------------------------------------------------------ > *From:* Alfred Fuchs > *To:* M.Dec-GM ; rxtx at qbang.org > *Sent:* Monday, August 15, 2011 2:48 AM > *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > OK, attachements are too big, > so only the compressed diffs. > > sorry! > > > Hi, > > source: rxtx-2.2pre2 from 2011-08-14. > > i made some little changes to the code: > > File SerialImp.c: > 1) in RXTXPort(eventLoop): malloc the event_info_struct > and free it in finalize_event_info_struct() > (hope this is the right place to do this). > > This fixes the "close" bug on my MacOSX 1.5 (64 bit) > and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). > > > 2) set the "eis" field to NULL in finalize_event_info_struct. > > 3) replaced all long with jlong, int with jint and int with pid_t, > where necessary > > 4) replaced get_java_var with more specific methodes: > f.e get_java_var_fd, get_java_var_eis, etc. > > 5) added a compile-time check for critical variable-sizes. > > > File SerialImp.h: > added the function declartions. > > > Dont know if You have usage for this code. > > > Regards, > Alfred > > > On 2011-08-14 08:36, M.Dec-GM wrote: > > Hi, > > I have found solution for "close() problem" for 32 bit systems W/M/L > in 2.2 pre. > > I have written about it many times on this mailing list, starting > from Nov. 2009 and later with another useful examples. > > Look for it and try it, maybe helps. > > Regards > > Mariusz > > > > > > ----- Original Message ----- > > From: Milton T. > > To: Osama Salah ; rxtx at qbang.org > > Sent: Sunday, August 14, 2011 7:57 AM > > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit > > > > > > This also happens on the Mac OSX. I think that i'm going to look > into this issue sometime next month. > > > > > > On Sat, Aug 13, 2011 at 3:36 PM, Osama > Salah> wrote: > > > > Hello, > > I think everyone knows about this issue; RXTX can't close > serial ports on Windows 7 64 bit, and Java crashes! I googled for this > problem and found that many programmers suffer from it, but no > solution. Have anyone found a solution for this problem ? > > Thanks > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at qbang.org > > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Mon Aug 15 03:51:55 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Mon, 15 Aug 2011 11:51:55 +0200 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48DC08.8000801@sandglass-software.com> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> Message-ID: <4E48EC3B.8090707@t-online.de> Hello Adrian, I didn't find a place where to post bug-fixes (or suggestions), so i posted them to this list. Posting a known bug to the bug tracker? What is the right procedure to send fixes? I need help! Another question: For Java programers who have to do with microcontrollers rxtx is a very important library. Would sourceforce not be a better place? (Simple check out etc.) -Alfred On 2011-08-15 10:42, Adrian Crum wrote: > Don't forget we have a bug tracker for this sort of thing. > > -Adrian > > On 8/15/2011 6:25 AM, Osama Salah wrote: >> Thanks Alfred, but I couldn't recompile under Windows, the following message is displayed: >> >> "C:\Program' is not recognized as an internal or external command" >> >> it seems that spaces in file names are not allowed inside "Makefile" :( >> >> So please send the compiled files, or upload them to a file-hosting server. >> >> Thanks, >> Osama Salah >> >> ------------------------------------------------------------------------ >> *From:* Alfred Fuchs >> *To:* M.Dec-GM ; rxtx at qbang.org >> *Sent:* Monday, August 15, 2011 2:48 AM >> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> >> OK, attachements are too big, >> so only the compressed diffs. >> >> sorry! >> >> >> Hi, >> >> source: rxtx-2.2pre2 from 2011-08-14. >> >> i made some little changes to the code: >> >> File SerialImp.c: >> 1) in RXTXPort(eventLoop): malloc the event_info_struct >> and free it in finalize_event_info_struct() >> (hope this is the right place to do this). >> >> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >> >> >> 2) set the "eis" field to NULL in finalize_event_info_struct. >> >> 3) replaced all long with jlong, int with jint and int with pid_t, >> where necessary >> >> 4) replaced get_java_var with more specific methodes: >> f.e get_java_var_fd, get_java_var_eis, etc. >> >> 5) added a compile-time check for critical variable-sizes. >> >> >> File SerialImp.h: >> added the function declartions. >> >> >> Dont know if You have usage for this code. >> >> >> Regards, >> Alfred >> >> >> On 2011-08-14 08:36, M.Dec-GM wrote: >> > Hi, >> > I have found solution for "close() problem" for 32 bit systems W/M/L in 2.2 pre. >> > I have written about it many times on this mailing list, starting from Nov. 2009 and later with another useful examples. >> > Look for it and try it, maybe helps. >> > Regards >> > Mariusz >> > >> > >> > ----- Original Message ----- >> > From: Milton T. >> > To: Osama Salah ; rxtx at qbang.org >> > Sent: Sunday, August 14, 2011 7:57 AM >> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >> > >> > >> > This also happens on the Mac OSX. I think that i'm going to look into this issue sometime next month. >> > >> > >> > On Sat, Aug 13, 2011 at 3:36 PM, Osama Salah> wrote: >> > >> > Hello, >> > I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for >> this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? >> > Thanks >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> > >> > >> > >> > >> > _______________________________________________ >> > Rxtx mailing list >> > Rxtx at qbang.org >> > http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From stefan.neureiter at gmx.at Mon Aug 15 03:53:47 2011 From: stefan.neureiter at gmx.at (Stefan Neureiter) Date: Mon, 15 Aug 2011 11:53:47 +0200 Subject: [Rxtx] Gumstix I2C + RXTX Message-ID: <20110815095347.183220@gmx.net> Hello, I am quite new to the Gumstix and I2C, but I have to use the I2C port of the Gumstix to communicate with the attached Robostix. Unfortunately I have to do this in Java. I used the "SerialTwoWayComm" example from the wiki to try opening the i2c port of the Gumstix ("/dev/i2c-0" and "/dev/i2c-1"). Now I get a "NoSuchPortExeption" when I run the programm. The ports exist and worked already in other cases. Does anyone of you have experience with using the I2C-Port of the Gumstix in Java? Thanks, Cheers Stefan -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur?ck-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone From adrian.crum at sandglass-software.com Mon Aug 15 04:36:23 2011 From: adrian.crum at sandglass-software.com (Adrian Crum) Date: Mon, 15 Aug 2011 11:36:23 +0100 Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit In-Reply-To: <4E48EC3B.8090707@t-online.de> References: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> <63F4A5840DC2493F8AD06A58A2B137ED@mdam3> <4E486CD9.9010408@t-online.de> <1313385933.83142.YahooMailNeo@web160218.mail.bf1.yahoo.com> <4E48DC08.8000801@sandglass-software.com> <4E48EC3B.8090707@t-online.de> Message-ID: <4E48F6A7.5080003@sandglass-software.com> http://bugzilla.qbang.org/ -Adrian On 8/15/2011 10:51 AM, Alfred Fuchs wrote: > Hello Adrian, > > I didn't find a place where to post bug-fixes (or suggestions), > so i posted them to this list. > > Posting a known bug to the bug tracker? > What is the right procedure to send fixes? > > I need help! > > Another question: > For Java programers who have to do with microcontrollers > rxtx is a very important library. Would sourceforce > not be a better place? (Simple check out etc.) > > -Alfred > > > > On 2011-08-15 10:42, Adrian Crum wrote: >> Don't forget we have a bug tracker for this sort of thing. >> >> -Adrian >> >> On 8/15/2011 6:25 AM, Osama Salah wrote: >>> Thanks Alfred, but I couldn't recompile under Windows, the following >>> message is displayed: >>> >>> "C:\Program' is not recognized as an internal or external command" >>> >>> it seems that spaces in file names are not allowed inside "Makefile" :( >>> >>> So please send the compiled files, or upload them to a file-hosting >>> server. >>> >>> Thanks, >>> Osama Salah >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Alfred Fuchs >>> *To:* M.Dec-GM ; rxtx at qbang.org >>> *Sent:* Monday, August 15, 2011 2:48 AM >>> *Subject:* Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> >>> OK, attachements are too big, >>> so only the compressed diffs. >>> >>> sorry! >>> >>> >>> Hi, >>> >>> source: rxtx-2.2pre2 from 2011-08-14. >>> >>> i made some little changes to the code: >>> >>> File SerialImp.c: >>> 1) in RXTXPort(eventLoop): malloc the event_info_struct >>> and free it in finalize_event_info_struct() >>> (hope this is the right place to do this). >>> >>> This fixes the "close" bug on my MacOSX 1.5 (64 bit) >>> and my Linux 2.6.37.6-0.7-desktop x86_64 (64 bit). >>> >>> >>> 2) set the "eis" field to NULL in finalize_event_info_struct. >>> >>> 3) replaced all long with jlong, int with jint and int with pid_t, >>> where necessary >>> >>> 4) replaced get_java_var with more specific methodes: >>> f.e get_java_var_fd, get_java_var_eis, etc. >>> >>> 5) added a compile-time check for critical variable-sizes. >>> >>> >>> File SerialImp.h: >>> added the function declartions. >>> >>> >>> Dont know if You have usage for this code. >>> >>> >>> Regards, >>> Alfred >>> >>> >>> On 2011-08-14 08:36, M.Dec-GM wrote: >>> > Hi, >>> > I have found solution for "close() problem" for 32 bit systems >>> W/M/L in 2.2 pre. >>> > I have written about it many times on this mailing list, starting >>> from Nov. 2009 and later with another useful examples. >>> > Look for it and try it, maybe helps. >>> > Regards >>> > Mariusz >>> > >>> > >>> > ----- Original Message ----- >>> > From: Milton T. >>> > To: Osama Salah ; rxtx at qbang.org >>> > Sent: Sunday, August 14, 2011 7:57 AM >>> > Subject: Re: [Rxtx] RXTX Crash problem on Windows 7 64 bit >>> > >>> > >>> > This also happens on the Mac OSX. I think that i'm going to look >>> into this issue sometime next month. >>> > >>> > >>> > On Sat, Aug 13, 2011 at 3:36 PM, Osama >>> Salah> wrote: >>> > >>> > Hello, >>> > I think everyone knows about this issue; RXTX can't close serial >>> ports on Windows 7 64 bit, and Java crashes! I googled for >>> this problem and found that many programmers suffer from it, but no >>> solution. Have anyone found a solution for this problem ? >>> > Thanks >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> > >>> > >>> > >>> > >>> > _______________________________________________ >>> > Rxtx mailing list >>> > Rxtx at qbang.org >>> > http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >>> >>> >>> >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at qbang.org >>> http://mailman.qbang.org/mailman/listinfo/rxtx >> >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From h4xtbh at gmail.com Mon Aug 15 05:21:27 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Mon, 15 Aug 2011 12:21:27 +0100 Subject: [Rxtx] Version Output In-Reply-To: <4E478D7F.2050101@t-online.de> References: <4E478D7F.2050101@t-online.de> Message-ID: Hi Alfred, Many thanks for the reply. So is it a case of having to unpack the JAR, edit it and then repackage? Within RXTXCommDriver devel is indeed set to true, but I can't edit it inline. Thanks again, Luke. On 14 August 2011 09:55, Alfred Fuchs wrote: > Hi Luke, > > if You are using RXTX-2.1-7 > and You output on the console like this: > > Stable Library > ==============================**=========== > Native lib Version = RXTX-2.1-7 > Java lib Version = RXTX-2.1-7 > Experimental: JNI_OnLoad called. > > > then (as i can see) set in File RXTXCommDriver.java > private final static boolean devel = false; // it is set to true > > and comment out in File SerialImp.c the line: > printf("Experimental: JNI_OnLoad called.\n"); > > then compile the code again. > > Regards, > Alfred > > > > On 2011-08-13 17:02, Luke Morgan wrote: > >> Hi, >> >> I'm implementing RXTX in a project and I've tried in vain to find out how >> to >> disable the version output generated by RXTX that gets sent to System.out. >> I've tried passing the following to the JVM: >> >> -Dgnu.io.rxtx.NoVersionOutput=**true >> >> ... to no avail. Any advice/help would be much appreciated. >> >> Many thanks, >> Luke. >> >> >> >> >> ______________________________**_________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/**mailman/listinfo/rxtx >> > > ______________________________**_________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/**mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajmas at sympatico.ca Tue Aug 16 08:18:51 2011 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 16 Aug 2011 10:18:51 -0400 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system In-Reply-To: <4E442F95.1090907@t-online.de> References: <4E442F95.1090907@t-online.de> Message-ID: Hi, I would take a look and the configure scripts, though I haven't check myself. Andre On 11-Aug-2011, at 15:37, Alfred Fuchs wrote: > Hello, > > *********************************************************** > System: > Linux 2.6.37.6-0.7-desktop x86_64 > System: openSUSE 11.4 (x86_64) > > Java Version: >> java -version: > gives: > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > *********************************************************** > > Problem: > > when running the *64-bit linux* rxtx version > from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip > it crashes on my system. > > So i compiled it from source with the "long" patch i postetd yesterday. > but i got a > "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" > error. > > Fix: > linking "librxtxSerial-2.1-7.so" on 64 bit linux system > does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o > (output from make: >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname > -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > ) > > so i included "SerialImp.o" manualy: > >> gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o > //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so > > and now *it works*. > > Whre is the right place in the scripts to fix this? > > > *********************************************************** > > Suggestion for checking variable sizes: > in "SerialImp.c" i added: > > #include > > and > > JNIEXPORT void JNICALL RXTXPort(Initialize)( > JNIEnv *env, > jclass jclazz > ) > { > > //>> @alfred 2011-08-01 > // check if jlong can hold pointer > // uintptr_t > // is an unsigned integer memsize-type that can safely store a pointer > // regardless of the platform capacity. > // The type uintptr_t is similar to the types size_t and UINT_PTR. > // f.e. @see uintptr_t > switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} > > // check if "jint" can hold "int" (used in "int fd = open...") > switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} > //<< @alfred 2011-08-01 > > > ... > } > > *********************************************************** > > best regards, > Alfred > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From turc0033 at gmail.com Mon Aug 22 14:00:50 2011 From: turc0033 at gmail.com (Milton T.) Date: Mon, 22 Aug 2011 15:00:50 -0500 Subject: [Rxtx] Version Output In-Reply-To: References: <4E478D7F.2050101@t-online.de> Message-ID: Hello all, I'm trying to add changes to fix the Serial Port Close() function using XCode. I downloaded the rxtx-2.2pre2 source code, opened "MACOSC_IDE" folder, opened "XCode" folder, and then double clicked the LibSerialUniversal.xcodeproj I followed the Build instructions for OSX XCode: ------------------------------------------------------------------------------------------------------------------------------------------------------------ contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim at buechse.de . ------------------------------------------------------------------------------------------------------------------------------------------------------------ Right off the bat, I noticed that most of the java, .c, .h, and the RXTXcomm.jar and librxtxSerial.jnilib files are missing. I still followed the directions and I got the following error: Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. I then upgraded to native targets and I still get the same error. After that, I added the missing files to the XCode project from the rxtx-2.2pre2 src folder except for: gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_I2C.h gnu_io_RS485.h because they weren't included in the rxtx-2.2pre2 folder. I tried to build the project again and still get the same error as before. Any suggestions on what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddevecchio at celestron.com Fri Aug 26 21:46:06 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 20:46:06 -0700 Subject: [Rxtx] CommPortIdentifiers changing Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Hello, I am re-writing an old program. In the old program, I found a serial port with my device, and then held it until the program terminated. This was a problem going forward. In the new version I have variable that holds the CommPortIdentifier of the last SerialPort I used. The patter is like this. Get Enum of CommPortIdentifiers, call them cpid for short. Weed out anything that is not a SerialPort Create a serial port object for each CommPortIdentifier in turn SerialPort sp = (SerialPort) cpid.open("program Name", 2000); Then test the serial port for the device. When I find one, I save the CommPortIdentifier associtated with that serial port. CommPortIdentifier lastActiveCPID = cpid; Then I use the device for a while, and when I am done, I release the serial port back to the OS, but save the associated ComPortIdentifier. sp.close(); Then, in theory, when I want to re-open the device I do the following. sp = (SerialPort) lastActiveCPID Normally I would first re-enumerate the ports to make sure that LastActiveCPID is still in the list. Low and behold, it is NOT in the list! Further, if I attempt to open the sp.lastACtiveCPID it will work the first time. But on the second or further times it will report "Owned by another processes and list myself as the owner (even though I meticulously closed the serial port. Upon debugging I find that the CommPortIdentifier that now has the serial port with the same name (as per CommPOrtIdentifier.getName()) has a different identifier in the NetBeans debugger panel. So what I am trying to figure out is, why does this happen? If, after calling sp.close() I saved sp itself instead of CommPortIdentifier that created sp, would sp re-open? Or do I always have to re-enumerate the ports after calling sp.close? From ddevecchio at celestron.com Fri Aug 26 22:16:51 2011 From: ddevecchio at celestron.com (DERIK DEVECCHIO) Date: Fri, 26 Aug 2011 21:16:51 -0700 Subject: [Rxtx] CommPortIdentifiers changing In-Reply-To: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> References: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EB@NUBULA-VM2.home.celestron.com> Message-ID: <9FAD7E5EBDD14B4981E81E66FA62E5C704BE1312EC@NUBULA-VM2.home.celestron.com> I forgot to mention that if I don't re-enumerate the list of CommPortIdentifiers then I don't get the problem. But that is sort of yucky because if the Serial Port isn't there any more, (by way of someone removing the USB to serial adapter) then I end up checking a completely entity, and then issuing a warning to the user about it. > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > DERIK DEVECCHIO > Sent: Friday, August 26, 2011 8:46 PM > To: rxtx at qbang.org > Subject: [Rxtx] CommPortIdentifiers changing > > Hello, > > I am re-writing an old program. In the old program, I found a serial port > with my device, and then held it until the program terminated. This was a > problem going forward. > > In the new version I have variable that holds the CommPortIdentifier of > the last SerialPort I used. > > The patter is like this. > > Get Enum of CommPortIdentifiers, call them cpid for short. > Weed out anything that is not a SerialPort > > Create a serial port object for each CommPortIdentifier in turn > SerialPort sp = (SerialPort) cpid.open("program Name", 2000); > > Then test the serial port for the device. When I find one, I save the > CommPortIdentifier associtated with that serial port. > > CommPortIdentifier lastActiveCPID = cpid; > > > Then I use the device for a while, and when I am done, I release the > serial port back to the OS, but save the associated ComPortIdentifier. > sp.close(); > > Then, in theory, when I want to re-open the device I do the following. > sp = (SerialPort) lastActiveCPID > > Normally I would first re-enumerate the ports to make sure that > LastActiveCPID is still in the list. > > Low and behold, it is NOT in the list! > Further, if I attempt to open the sp.lastACtiveCPID it will work the first > time. But on the second or further times it will report "Owned by another > processes and list myself as the owner (even though I meticulously closed > the serial port. > > Upon debugging I find that the CommPortIdentifier that now has the serial > port with the same name (as per CommPOrtIdentifier.getName()) has a > different identifier in the NetBeans debugger panel. > > > So what I am trying to figure out is, why does this happen? If, after > calling sp.close() I saved sp itself instead of CommPortIdentifier that > created sp, would sp re-open? Or do I always have to re-enumerate the > ports after calling sp.close? > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx From member at linkedin.com Mon Aug 29 19:53:15 2011 From: member at linkedin.com (Cheers Hsieh via LinkedIn) Date: Tue, 30 Aug 2011 01:53:15 +0000 (UTC) Subject: [Rxtx] Invitation to connect on LinkedIn Message-ID: <1001331776.6953838.1314669195156.JavaMail.app@ela4-app0131.prod> LinkedIn ------------ Cheers Hsieh requested to add you as a connection on LinkedIn: ------------------------------------------ Julie, I'd like to add you to my professional network on LinkedIn. - Cheers Accept invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0TdPcRd3ASc3d9bQ9Uj7pgqCV2bPwQcjgVejANc3gLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Cheers Hsieh http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/QWeiNGEqZ7_AjzbC9Zep6NJ4/blk/I3069453770_2/39vc3sTcPkQejoMcQALqnpPbOYWrSlI/svi/ ------------------------------------------ Why might connecting with Cheers Hsieh be a good idea? People Cheers Hsieh knows can discover your profile: Connecting to Cheers Hsieh will attract the attention of LinkedIn users. See who's been viewing your profile: http://www.linkedin.com/e/-hxrr9z-gry83f6b-9/wvp/inv18_wvmp/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cougar at CasaDelGato.Com Wed Aug 3 22:25:03 2011 From: Cougar at CasaDelGato.Com (John G. Lussmyer) Date: Wed, 03 Aug 2011 21:25:03 -0700 Subject: [Rxtx] RxTx hanging problem Message-ID: <4E3A1F1F.5070908@CasaDelGato.Com> I have a user who is trying to use my app on their netbook. I've had several people use netbooks successfully, but for this one, the app hangs as soon as it opens the port. He can use Hyperterminal to talk with the device successfully. Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model Java 6 build 25 Standard Edition . Serial to USB is Prolific usb-to-serial comm at \system32\drivers\ser2pl.sys I'm using RxTx2.2pre Any ideas? -- -- John G. Lussmyer mailto:Cougar at CasaDelGato.Com Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com From mariusz.dec at gmail.com Thu Aug 4 01:35:32 2011 From: mariusz.dec at gmail.com (M.Dec-GM) Date: Thu, 4 Aug 2011 09:35:32 +0200 Subject: [Rxtx] RxTx hanging problem References: <4E3A1F1F.5070908@CasaDelGato.Com> Message-ID: <56ED7A9AD61D416FB753577C49572C2B@mdam3> Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From Martin.Oberhuber at windriver.com Thu Aug 4 02:48:46 2011 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Thu, 4 Aug 2011 08:48:46 +0000 Subject: [Rxtx] RxTx hanging problem In-Reply-To: <56ED7A9AD61D416FB753577C49572C2B@mdam3> References: <4E3A1F1F.5070908@CasaDelGato.Com> <56ED7A9AD61D416FB753577C49572C2B@mdam3> Message-ID: <146B1557584B0B4DBD25ABAD45EF70F00E60E626@ALA-MBB.corp.ad.wrs.com> Good guess, we've also seen large delays during port autodiscovery, especially due to Bluetooth drivers. To verify, try launching the app with an explicit port specified: java -Dgnu.io.rxtx.SerialPorts=COM3 Some time ago, I've had the idea to replace the current port scanning algorithm with something more pluggable ... and use PJ Naughter's enumser code on Windows as the port detection method. Unfortunately I never got to actually implementing it... See - http://bugzilla.qbang.org/show_bug.cgi?id=103 - http://mailman.qbang.org/pipermail/rxtx/2008-December/9221195.html Port specification - http://mailman.qbang.org/pipermail/rxtx/2008-April/9220816.html Thanks, Martin -- Martin?Oberhuber, SMTS / Product Architect - Development Tools, Wind River direct +43.662.457915.85??fax +43.662.457915.6 -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of M.Dec-GM Sent: Thursday, August 04, 2011 9:36 AM To: rxtx at qbang.org Subject: Re: [Rxtx] RxTx hanging problem Hmm, mysterious... Maybe this helps... In many laptops there is a dummy COM port. I have seen non existing COM1 or COM3 (most often), even COM4... When I have connected USB-RS, this port disappears in most cases, sometimes lefts. Maybe there is a stupid interaction with this port while you are looking for COM ports in RXTX? Regards Mariusz ----- Original Message ----- From: "John G. Lussmyer" To: Sent: Thursday, August 04, 2011 6:25 AM Subject: [Rxtx] RxTx hanging problem >I have a user who is trying to use my app on their netbook. I've had >several people use netbooks successfully, but for this one, the app hangs >as soon as it opens the port. > He can use Hyperterminal to talk with the device successfully. > > Aloha, Windows ACPI x86-based PC. Windows 7 Starter for netbooks. with > Intel Atom CPU n550. 1.5 gig. ON Acer Aspire One D255 model > Java 6 build 25 Standard Edition . > Serial to USB is Prolific usb-to-serial comm at > \system32\drivers\ser2pl.sys > > I'm using RxTx2.2pre > > Any ideas? > > > -- > -- > John G. Lussmyer mailto:Cougar at CasaDelGato.Com > Electric Vehicle Battery Monitoring Systems, http://www.CasaDelGato.com > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From invite+zrdoi=fgeerf at facebookmail.com Fri Aug 5 13:54:00 2011 From: invite+zrdoi=fgeerf at facebookmail.com (Petter Rafael Villa Real) Date: Fri, 5 Aug 2011 12:54:00 -0700 Subject: [Rxtx] Um convite especial Message-ID: Ol? Rxtx, Criei um perfil no Facebook com minhas fotos, v?deos e eventos e quero adicionar-lhe aos amigos para que voc? possa ver meu perfil. Primeiro, voc? precisa cadastrar-se no Facebook! Uma vez cadastrado, voc? tamb?m poder? criar seu pr?prio perfil. Obrigada, Petter Rafael Para se cadastrar no Facebook, clique no link abaixo: http://www.facebook.com/p.php?i=100000503857200&k=AQBfpqAje5L3BsJlCC2X6d810paIbC4zGSroOwpwBrRNkXAqjOF27NcemQMC7rdC1P45f25UnON-05oqbiQFT-z-e_I&r J? possui uma conta? Adicionar este endere?o de e-mail ? sua conta: http://www.facebook.com/n/?merge_accounts.php&e=rxtx%40qbang.org&c=AQA-qGickdAmbM7V5D3wGhHu8g3kaS-txVfz2ghIraX-NA ======================================= rxtx at qbang.org foi convidado a participar do Facebook por Petter Rafael Villa Real. Se voc? n?o deseja mais receber estes e-mails do Facebook, use o link abaixo para cancelar sua inscri??o. http://www.facebook.com/o.php?k=3ecb54&u=100001431127305&mid=4a6477dG5af365c78509G0G8 Saiba mais sobre esse e-mail: http://www.facebook.com/help/?faq=17151\nFacebook, Inc. P.O. Box 10005, Palo Alto, CA 94303 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.fuchs at t-online.de Thu Aug 11 13:37:57 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:37:57 +0200 Subject: [Rxtx] java.lang.UnsatisfiedLinkError on 64bit linux system Message-ID: <4E442F95.1090907@t-online.de> Hello, *********************************************************** System: Linux 2.6.37.6-0.7-desktop x86_64 System: openSUSE 11.4 (x86_64) Java Version: > java -version: gives: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) *********************************************************** Problem: when running the *64-bit linux* rxtx version from http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip it crashes on my system. So i compiled it from source with the "long" patch i postetd yesterday. but i got a "java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String" error. Fix: linking "librxtxSerial-2.1-7.so" on 64 bit linux system does *not* include /x86_64-unknown-linux-gnu/.libs/SerialImp.o (output from make: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so ) so i included "SerialImp.o" manualy: > gcc -shared /rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/fuserImp.o //rxtx-2.1-7r2/x86_64-unknown-linux-gnu/.libs/SerialImp.o -lpthread -Wl,-soname -Wl,librxtxSerial-2.1-7.so -o .libs/librxtxSerial-2.1-7.so and now *it works*. Whre is the right place in the scripts to fix this? *********************************************************** Suggestion for checking variable sizes: in "SerialImp.c" i added: #include and JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { //>> @alfred 2011-08-01 // check if jlong can hold pointer // uintptr_t // is an unsigned integer memsize-type that can safely store a pointer // regardless of the platform capacity. // The type uintptr_t is similar to the types size_t and UINT_PTR. // f.e. @see uintptr_t switch(0) { case 0: case (sizeof(jlong)>=sizeof(uintptr_t)?1:0):;} // check if "jint" can hold "int" (used in "int fd = open...") switch(0) { case 0: case (sizeof(jint)<=sizeof(int)?1:0):;} //<< @alfred 2011-08-01 ... } *********************************************************** best regards, Alfred From alfred.fuchs at t-online.de Thu Aug 11 13:43:21 2011 From: alfred.fuchs at t-online.de (Alfred Fuchs) Date: Thu, 11 Aug 2011 21:43:21 +0200 Subject: [Rxtx] RXTX and MacOSX 10.5.8: problem and fix In-Reply-To: <4E42B1A0.4060900@alfred-fuchs.de> References: <4E42B1A0.4060900@alfred-fuchs.de> Message-ID: <4E4430D9.5070402@t-online.de> Hello, i posted a fix for RXTX on MacOSX 10.5.8 (64 bit system) but now I found the patch from Dan Sandberg who has already done the same job: http://mailman.qbang.org/pipermail/rxtx/2007-June/3368151.html My question: why is the fix not included in the current stable source (2.1-7r2)? best regards, Alfred From jorgenovoa8 at gmail.com Fri Aug 12 18:11:49 2011 From: jorgenovoa8 at gmail.com (jorge novoa) Date: Sat, 13 Aug 2011 00:11:49 +0000 (UTC) Subject: [Rxtx] =?utf-8?q?Invitaci=C3=B3n_a_conectarnos_en_LinkedIn?= Message-ID: <1898050748.63236.1313194309132.JavaMail.app@ela4-bed81.prod> LinkedIn ------------ Me gustar?a a?adirte a mi red profesional en LinkedIn. -jorge jorge novoa Profesional independiente en el sector Desarrollo de programaci?n Chihuahua Area, Mexico Confirm that you know jorge novoa https://www.linkedin.com/e/-hxrr9z-gr9tzhu2-9/isd/2901040450/5t7PO8ws/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From h4xtbh at gmail.com Sat Aug 13 09:02:07 2011 From: h4xtbh at gmail.com (Luke Morgan) Date: Sat, 13 Aug 2011 16:02:07 +0100 Subject: [Rxtx] Version Output Message-ID: Hi, I'm implementing RXTX in a project and I've tried in vain to find out how to disable the version output generated by RXTX that gets sent to System.out. I've tried passing the following to the JVM: -Dgnu.io.rxtx.NoVersionOutput=true ... to no avail. Any advice/help would be much appreciated. Many thanks, Luke. -------------- next part -------------- An HTML attachment was scrubbed... URL: From os.dexterity at ymail.com Sat Aug 13 14:36:57 2011 From: os.dexterity at ymail.com (Osama Salah) Date: Sat, 13 Aug 2011 13:36:57 -0700 (PDT) Subject: [Rxtx] RXTX Crash problem on Windows 7 64 bit Message-ID: <1313267817.67389.YahooMailNeo@web160204.mail.bf1.yahoo.com> Hello, I think everyone knows about this issue; RXTX can't close serial ports on Windows 7 64 bit, and Java crashes! I googled for this problem and found that many programmers suffer from it, but no solution. Have anyone found a solution for this problem ? Thanks -------------- next part -------------- An H