Re: [Gambas-user] Serial Port issues and events.

2016-06-30 Thread Alexie
g) is the incorrect thinking > > -Fernando > > > > -- > > Open WebMail Project (http://openwebmail.org) > > > > > > -- Original Message --- > > From: ML > > To: gambas-user@lists.sourceforge.net > > Sent: Thu, 30 Jun

Re: [Gambas-user] Serial Port issues and events.

2016-06-30 Thread ML
going to use byte[] array > then byte[0] = 2 is the equivalent. > Using escape (like HTML encoding) is the incorrect thinking > -Fernando > > -- > Open WebMail Project (http://openwebmail.org) > > > -- Original Message --- > From: ML > To: gambas-

Re: [Gambas-user] Serial Port issues and events.

2016-06-30 Thread nando_f
0300 Subject: Re: [Gambas-user] Serial Port issues and events. > Alexie, > > Not really. This is my first attempt at a binary-exchange over serial in > Gambas. Can't also find out the old G3 examples that might have existed > about this and my web searches were unsuccessful. >

Re: [Gambas-user] Serial Port issues and events.

2016-06-30 Thread ML
Alexie, Not really. This is my first attempt at a binary-exchange over serial in Gambas. Can't also find out the old G3 examples that might have existed about this and my web searches were unsuccessful. So, if you could point me to some example code to read a Byte[], I'll be grateful. My attempts

Re: [Gambas-user] Serial Port issues and events.

2016-06-30 Thread Alexie
Do you have a better/working example? Using multiple serialport works fine in Gambas (we use it in DomotiGa). You can read byte for byte, or read it into an array (latter one i recommend). Then you just loop through the array until you find STX/ETX characters ;-) 2016-06-30 12:17 GMT+02:00 zxMarce

[Gambas-user] Serial Port issues and events.

2016-06-30 Thread zxMarce
Hi there. Using Gambas 3.8.4 from PPA on Ubuntu 14.04 x64. I'm having issues with serial ports. I have a USB to 4 RS232C hub adapter. It is working on a virtual Windows machine, reading and writing as it is supposed to do. The connected device (using one port only) is a Magnetic Card Encoder that

Re: [Gambas-user] Serial port control

2013-12-23 Thread Carl Nilsson
uld mean not enough came in. > >In this case you could also do a small time delay (ie. WAIT 0.1) > >just to prevent the CPU from running 100% testing for 124 bytes. > > > > > >Both of these can be a Gambas Class and the second function is the > >public function.

Re: [Gambas-user] Serial port control

2013-12-23 Thread Mike Crean
_new to instantiate the serial port control. >You don't need to create it at design time. > >I used techniques like this and it works like a charm. >-Nando > > >------ Original Message --- >From: Randall Morgan >To: mailing list for gambas users >Sent:

Re: [Gambas-user] Serial port control

2013-12-23 Thread Carl Nilsson
ndo > > >------ Original Message --- >From: Randall Morgan >To: mailing list for gambas users >Sent: Sun, 22 Dec 2013 23:35:33 -0800 >Subject: Re: [Gambas-user] Serial port control > > > I think the RTheshold of VB simply sets the byte count that must accu

Re: [Gambas-user] Serial port control

2013-12-23 Thread Mike Crean
riginal Message --- From: Randall Morgan To: mailing list for gambas users Sent: Sun, 22 Dec 2013 23:35:33 -0800 Subject: Re: [Gambas-user] Serial port control > I think the RTheshold of VB simply sets the byte count that must accumulate > in the receive buffer before a comm even

Re: [Gambas-user] Serial port control

2013-12-23 Thread nando
ssage --- From: Randall Morgan To: mailing list for gambas users Sent: Sun, 22 Dec 2013 23:35:33 -0800 Subject: Re: [Gambas-user] Serial port control > I think the RTheshold of VB simply sets the byte count that must accumulate > in the receive buffer before a comm event is triggered. It

Re: [Gambas-user] Serial port control

2013-12-23 Thread nando
it for your devices. I assure you it can certainly do it without fail. -Nando -- Original Message --- From: Randall Morgan To: mailing list for gambas users Sent: Sun, 22 Dec 2013 23:35:33 -0800 Subject: Re: [Gambas-user] Serial port control > I think the RTheshold of VB sim

Re: [Gambas-user] Serial port control

2013-12-22 Thread Randall Morgan
I think the RTheshold of VB simply sets the byte count that must accumulate in the receive buffer before a comm event is triggered. It doesn't do anything else. In the background VB is still polling the buffer and looking at the byte count. You can do this in GB but you will have to write it yourse

Re: [Gambas-user] Serial port control

2013-12-22 Thread Carl Nilsson
Thanks Randall. I guess it's time to try it and play around a little, which I can't do for a few days. At the moment I'm trying to look ahead and see where problems might lie. When push comes to shove, I don't know how these things really work! I follow recipes! Don't really want to close

Re: [Gambas-user] Serial port control

2013-12-22 Thread Randall Morgan
It has been a long while since I have used the serial component of GB but I have a project starting in which I will need to re-acquaint myself with it. The stream can be setup as blocking or non-blocking. The PC uses either polling or interrupt when the port is opened. So trying to manage the seria

Re: [Gambas-user] Serial port control

2013-12-22 Thread Carl Nilsson
Randall: Thanks for responding. OK, I have looked at the stream functions: My question was, basically, how do I specify how many bytes I want to take in from a given serial port at each instance? For example, on one input I expect a continuous stream of 31 byte packets and I want to take the

Re: [Gambas-user] Serial port control

2013-12-22 Thread Randall Morgan
As I recall gb serial is steam based and so you would handle buffers via the stream not the serial object. On Sun, Dec 22, 2013 at 3:01 PM, Carl Nilsson wrote: > G'day all: > Now with Gambas 3 installed, I want to get on with porting my running > software from VB6/Windows. It requires processi

[Gambas-user] Serial port control

2013-12-22 Thread Carl Nilsson
G'day all: Now with Gambas 3 installed, I want to get on with porting my running software from VB6/Windows. It requires processing multiple streams of binary serial data from attached devices. The serial control in gambas 3 does not seem up to the job, in so far as the available properties la

Re: [Gambas-user] serial port issue (Robert JUHASZ)

2010-04-21 Thread Chris Dunworth
Hi, Have you looked at device/terminal servers such as 'nport server' from MOXA http://www.moxa.com/product/NPort_5410.htm These devices facilitate RS232 serial comms with devices using TCP/IP sockets. Very useful where application does not have serial drivers Not cheap , but very flexible & expa

Re: [Gambas-user] serial port issue

2010-04-21 Thread nando
I use 6 serial ports, sometimes usb mixed in, No problem in Gambas whatsoever -Fernando -- Original Message --- From: Ron To: mailing list for gambas users Sent: Wed, 21 Apr 2010 15:29:37 +0200 Subject: Re: [Gambas-user] serial port issue > I have no experience with the ca

Re: [Gambas-user] serial port issue

2010-04-21 Thread Ron
I have no experience with the cable in my link, I just found it yesterday, but make sure your usb to serial converters have a FTDI chip inside. Not (like most of mine) an Prolific PL2303 chip since they all have the same device id and serial number, so you have a small problem identifing them.

Re: [Gambas-user] serial port issue

2010-04-21 Thread Robert JUHASZ
Thanks for the info! I may need to find some reliable hardware, this can be an issue (the one installed by my Chinese informatics colleague doesn't give me too much confidence :-) Did you have to install any driver to get it working? Robi 2010/4/21 Ron > I use a ten ports usb hub and seperate

Re: [Gambas-user] serial port issue

2010-04-21 Thread Ron
I use a ten ports usb hub and seperate usb to serial cables. I have written some udev rules to lock the serial device names to the physical ports.. otherwise they change after a reboot. To bad I just found these guys afterwards: http://www.picco.nl/product_info.php?products_id=2338 Regards, Ron.

Re: [Gambas-user] serial port issue

2010-04-21 Thread Robert JUHASZ
Ron, I mean that the app doesn't do what I wish him to do :-) Unfortunately it works as expected with the serial port on the motherboard (ttyS0, same equipment connected, same data sent and should have been received) so it should not be a bug in my code. The connection parameters (including Xon/Xo

Re: [Gambas-user] serial port issue

2010-04-21 Thread Doriano Blengino
Robert JUHASZ ha scritto: > The communication parameters are 9600, 8, n, 1, Xon/Xoff. > >> Do you have some sort of handshaking? >> Then it /could/ happen that the device sends an Xoff, but the software does not see it at the correct time. There has been a similar issue when the new UARTs

Re: [Gambas-user] serial port issue

2010-04-21 Thread Ron
You mean crashing like in signal #11 core dump or the application doesn't do what's wanted? Which version of Gambas? There where a few serial port related bug fixes. http://gambas.sourceforge.net/en/changelog2.html I use a lot (10) serial ports in my gambas app. 24/7 but I do not use xon/off.

Re: [Gambas-user] serial port issue

2010-04-21 Thread Robert JUHASZ
The communication parameters are 9600, 8, n, 1, Xon/Xoff. 2010/4/21 Doriano Blengino > Robert JUHASZ ha scritto: > > All the parameters are the same obtained by autoconfig, except the UART > > which was undefined for the added ports. > > I set this parameter to the same value as for the working

Re: [Gambas-user] serial port issue

2010-04-21 Thread Doriano Blengino
Robert JUHASZ ha scritto: > All the parameters are the same obtained by autoconfig, except the UART > which was undefined for the added ports. > I set this parameter to the same value as for the working one: 16550A (in > fact I tried all the possible UART parameters and where the port was working >

Re: [Gambas-user] serial port issue

2010-04-21 Thread Robert JUHASZ
All the parameters are the same obtained by autoconfig, except the UART which was undefined for the added ports. I set this parameter to the same value as for the working one: 16550A (in fact I tried all the possible UART parameters and where the port was working it behaves always the same: short t

Re: [Gambas-user] serial port issue

2010-04-21 Thread Ron
Maybe try to see if there are any differences between the ports with the setserial command. $ setserial -a /dev/ttyS1 /dev/ttyS1, Line 1, UART: unknown, Port: 0x02f8, IRQ: 3 Baud_base: 115200, close_delay: 50, divisor: 0 closing_wait: 3000 Flags: spd_normal skip_test $ s

[Gambas-user] serial port issue

2010-04-21 Thread Robert JUHASZ
Hello List, This may not be a fully gambas question just I don't know who to ask for help - sorry for posting it here. I try to switch my measurement from windows XP (VB) to Ubuntu 9.10. This program takes several (3, for the moment) equipments connected to a PC through serial ports. It works cor

Re: [Gambas-user] Serial port (gb.net) curious error - reading byte value incorrectly.

2010-01-13 Thread Benoît Minisini
> On 13/01/10 11:00, Anthony Ivan wrote: > > Hello to All, > > > > [Gambas 2.19.0-1 on Fedora 12, Intel X86_64] > > > > I am currently working on a little project that communicates with a VHF > > radio via the MAP27 instruction set. All is working perfectly except for > > one small error... as deta

Re: [Gambas-user] Serial port (gb.net) curious error - reading byte value incorrectly.

2010-01-12 Thread Werner
On 13/01/10 11:00, Anthony Ivan wrote: > Hello to All, > > [Gambas 2.19.0-1 on Fedora 12, Intel X86_64] > > I am currently working on a little project that communicates with a VHF > radio via the MAP27 instruction set. All is working perfectly except for > one small error... as detailed below...

[Gambas-user] Serial port (gb.net) curious error - reading byte value incorrectly.

2010-01-12 Thread Anthony Ivan
Hello to All, [Gambas 2.19.0-1 on Fedora 12, Intel X86_64] I am currently working on a little project that communicates with a VHF radio via the MAP27 instruction set. All is working perfectly except for one small error... as detailed below... When the radio communicates with the PC the serial

Re: [Gambas-user] serial port

2009-12-09 Thread Tony
gambas-u...@lists.sourceforge.net Sent: Fri, 18 Sep 2009 21:08:04 -0700 (PDT) Subject: [Gambas-user] serial port Hello, I can see that Gambas can handle the serial ports which is a very good news for me. Can someone tell me how can I get the list of the serial ports of my computer? I wish t

Re: [Gambas-user] Serial port data being changed ????

2009-12-09 Thread Les Hardy
Benoît Minisini wrote: > > I'm not a serial port user at all, and I find that behaviour a bit strange. > > Would it be useful to make a property for that? Or maybe it does already > exist > in the SerialPort class, and I didn't see it. > Nothing strange really. Its been like that as long as

Re: [Gambas-user] Serial port data being changed ????

2009-12-09 Thread Les Hardy
Benoît Minisini wrote: > > I'm not a serial port user at all, and I find that behaviour a bit strange. > > Would it be useful to make a property for that? Or maybe it does already > exist > in the SerialPort class, and I didn't see it. > Nothing strange really. Its been like that as long as

Re: [Gambas-user] serial port

2009-12-09 Thread yuhej
had this happen tooreally messes things up. >> >> -Fernando >> >> >> ------ Original Message --- >> From: yuhej >> To: gambas-user@lists.sourceforge.net >> Sent: Fri, 18 Sep 2009 21:08:04 -0700 (PDT) >> Subject: [Gambas-user] s

Re: [Gambas-user] Serial port data being changed ????

2009-12-08 Thread Ron_1st
On Tuesday 08 December 2009, nospam.nospam.nos...@gmail.com wrote: > Les Hardy wrote: > > Kadaitcha Man wrote: > > I first have to figure out if icrnl flaf is a typo or an esoteric > > command line :) > >> > > Yes, esoteric, makes me feel special. Only a few know about flafs. > > lol > > > Then

Re: [Gambas-user] Serial port data being changed ????

2009-12-08 Thread Mike
Benoît Minisini wrote: This is a Linux thing. Not Gambas. The icrnl flaf is set as standard. Easiest way is to use stty to change it. SHELL "stty -F " & SerPort1.PortName & " -icrnl" I'm not a serial port user at all, and I find that behaviour a bit strange. Would it be useful to

Re: [Gambas-user] Serial port data being changed ????

2009-12-08 Thread nospam.nospam.nospam
Les Hardy wrote: > Kadaitcha Man wrote: > I first have to figure out if icrnl flaf is a typo or an esoteric > command line :) >> > Yes, esoteric, makes me feel special. Only a few know about flafs. lol > Then again, it could just be flag. Nah. That'd ruin the whole effect.

Re: [Gambas-user] Serial port data being changed ????

2009-12-08 Thread Doriano Blengino
Ron ha scritto: > Benoît Minisini schreef: > >>> mike wrote: >>> >>> I'm having trouble with Gambas and the serial ports. Something is changing binary &h0d to &h0a when received from a serial port. I noticed it in a program that I've been working on that receives

Re: [Gambas-user] Serial port data being changed ????

2009-12-08 Thread Ron
Benoît Minisini schreef: >> mike wrote: >> >>> I'm having trouble with Gambas and the serial ports. >>> Something is changing binary &h0d to &h0a when received >>> from a serial port. I noticed it in a program that I've >>> been working on that receives packets of binary data >>> from a microp

Re: [Gambas-user] Serial port data being changed ????

2009-12-08 Thread Benoît Minisini
> mike wrote: > > I'm having trouble with Gambas and the serial ports. > > Something is changing binary &h0d to &h0a when received > > from a serial port. I noticed it in a program that I've > > been working on that receives packets of binary data > > from a microprocessor. I wrote a little test pr

Re: [Gambas-user] Serial port data being changed ???? -- Solved

2009-12-08 Thread mike
Ahh, Thank you. Now I can move on to finish my project. > > This is a Linux thing. Not Gambas. The icrnl flaf is set as standard. > Easiest way is to use stty to change it. > > SHELL "stty -F "& SerPort1.PortName& " -icrnl" > > > > ---

Re: [Gambas-user] Serial port data being changed ????

2009-12-08 Thread Les Hardy
Kadaitcha Man wrote: I first have to figure out if icrnl flaf is a typo or an esoteric command line :) > Yes, esoteric, makes me feel special. Only a few know about flafs. Then again, it could just be flag. -- Return o

Re: [Gambas-user] Serial port data being changed ????

2009-12-08 Thread Kadaitcha Man
2009/12/8 Les Hardy : > This is a Linux thing. Not Gambas. Linux has a lot of "things". I learned the hard way that localhost TCP/IP ports below 1024 are protected. Sheesh. I lost a full day to that. Today I lost several hours to Gambas behaviour that is expained by bugs in Qt3. Nevertheless you

Re: [Gambas-user] Serial port data being changed ????

2009-12-08 Thread Les Hardy
mike wrote: > I'm having trouble with Gambas and the serial ports. > Something is changing binary &h0d to &h0a when received > from a serial port. I noticed it in a program that I've > been working on that receives packets of binary data > from a microprocessor. I wrote a little test program to >

[Gambas-user] Serial port data being changed ????

2009-12-07 Thread mike
I'm having trouble with Gambas and the serial ports. Something is changing binary &h0d to &h0a when received from a serial port. I noticed it in a program that I've been working on that receives packets of binary data from a microprocessor. I wrote a little test program to demonstrate the problem a

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-06 Thread Tony
Benoît Minisini wrote: I found out that reading one by one is a slow process, I found out that reading all Lof will in a rare instance _READ will not fire when only 1 byte arrives immediately after. I find it works correctly 100% when I read Lof()-1 and rely on _Read to fire again. for the o

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-06 Thread Benoît Minisini
> I found out that reading one by one is a slow process, > I found out that reading all Lof will in a rare instance _READ will not > fire when only 1 byte arrives immediately after. > I find it works correctly 100% when I read Lof()-1 and rely on _Read to > fire again. for the one remaining and t

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread nando
arriving immediately after. -- Original Message --- From: Benoît Minisini To: nand...@nothingsimple.com, mailing list for gambas users Sent: Sat, 5 Dec 2009 21:56:41 +0100 Subject: Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic > >

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Benoît Minisini
> Benoit, > Just to let you know, for your information only. > My serial port applicationS that have been running 24 hours for 4 years on > over 150 computers works much better when pull out All less 1 byte each > _Read event as opposed to. I didn't understand the last sentence. Do you read bytes

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread nando
e and this worked better. Still Using 1.0.18 or .19 and solid as a rock!! -Fernando -- Original Message --- From: Benoît Minisini To: mailing list for gambas users Sent: Sat, 5 Dec 2009 20:48:26 +0100 Subject: Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Benoît Minisini
> > > > Benoit, > > > > runned valgrind tool for a while. > > > > And I got a rather strange winner, I got 3 milion calls of _add_char in > > gb_error.c > > > > Some debug code hanging around or something like that? > > > > See attached valgrind file. > > > > Regards, > > Ron_2nd. > > The reason i

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Benoît Minisini
> Benoît Minisini schreef: > >> Benoît Minisini schreef: > >>> It should be ok with revision #2456! > >>> > >>> If it really works, can you check that changing the flow control > >>> between None and something else actually has an effect on CPU > >>> consumption? > >> > >> Benoît, > >> > >> no segf

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Jean-Yves F. Barbier
Ron a écrit : ... > runned valgrind tool for a while. > > And I got a rather strange winner, I got 3 milion calls of _add_char in > gb_error.c > > Some debug code hanging around or something like that? > > See attached valgrind file. May be that's a source for what I noticed (Debian sid, XP2

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Ron
Benoît Minisini schreef: >> Benoît Minisini schreef: >> >>> It should be ok with revision #2456! >>> >>> If it really works, can you check that changing the flow control between >>> None and something else actually has an effect on CPU consumption? >>> >> Benoît, >> >> no segfaults, but

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Benoît Minisini
> Benoît Minisini schreef: > > It should be ok with revision #2456! > > > > If it really works, can you check that changing the flow control between > > None and something else actually has an effect on CPU consumption? > > Benoît, > > no segfaults, but the system load when running my project wit

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Ron
Benoît Minisini schreef: > It should be ok with revision #2456! > > If it really works, can you check that changing the flow control between None > and something else actually has an effect on CPU consumption? > > Benoît, no segfaults, but the system load when running my project with the patch

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Benoît Minisini
It should be ok with revision #2456! If it really works, can you check that changing the flow control between None and something else actually has an effect on CPU consumption? -- Benoît Minisini -- Join us December 9,

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Ron
Benoît Minisini schreef: >>Benoit, >>Here is the output of valgrind as requested. I hope it helps. >>Regards, >>Tony.. >>$ valgrind --tool=memcheck --num-callers=50 gbx2 >>==2404== Memcheck, a memory error detector >>==2404== Copyright (C) 2002-2009, and GNU GPL'd, by Ju

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Benoît Minisini
>Benoit, >Here is the output of valgrind as requested. I hope it helps. >Regards, >Tony.. >$ valgrind --tool=memcheck --num-callers=50 gbx2 >==2404== Memcheck, a memory error detector >==2404== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. >==2404==

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-02 Thread Tony
Benoit, Here is the output of valgrind as requested. I hope it helps. Regards, Tony.. $ valgrind --tool=memcheck --num-callers=50 gbx2 ==2404== Memcheck, a memory error detector ==2404== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==2404== Using Valgrind

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-02 Thread Ron
Ron wrote: > Benoît Minisini wrote: >>> Am Mittwoch, den 02.12.2009, 20:25 +1100 schrieb Tony: >>> Hi Benoit, I have muddled my way through the subversion bit, hopefully correctly and compiled the 2454 version. When opening my application I get the error message "Th

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-02 Thread Ron
Benoît Minisini wrote: >> Am Mittwoch, den 02.12.2009, 20:25 +1100 schrieb Tony: >> >>> Hi Benoit, >>>I have muddled my way through the subversion bit, hopefully correctly >>> and compiled the 2454 version. When opening my application I get the >>> error message "The program has stopped un

Re: [Gambas-user] Serial Port Change Events Not Working a fter Upgrade to Karmic

2009-12-02 Thread Benoît Minisini
> Am Mittwoch, den 02.12.2009, 20:25 +1100 schrieb Tony: > > Hi Benoit, > >I have muddled my way through the subversion bit, hopefully correctly > > and compiled the 2454 version. When opening my application I get the > > error message "The program has stopped unexpectedly raising signal #11" >

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-02 Thread Charlie Reinl
Am Mittwoch, den 02.12.2009, 20:25 +1100 schrieb Tony: > Hi Benoit, >I have muddled my way through the subversion bit, hopefully correctly and >compiled the 2454 version. When opening my application I get the error >message "The program has stopped unexpectedly raising signal #11" with

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-02 Thread Tony
Hi Benoit, I have muddled my way through the subversion bit, hopefully correctly and compiled the 2454 version. When opening my application I get the error message "The program has stopped unexpectedly raising signal #11" with the CPU at 100%. If I try to open the wrong ttyUSBx, the

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Benoît Minisini
>Thanks Benoit and all for your speedy replies.. >I'm using the serial port in a timing application with 3 laser through > beam sensors feeding into the CTS, RI and DSR lines of the serial port. In > this mode I don't pass any data, don't really care about flow control and > am only inte

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Tony
Thanks Benoit and all for your speedy replies.. I'm using the serial port in a timing application with 3 laser through beam sensors feeding into the CTS, RI and DSR lines of the serial port. In this mode I don't pass any data, don't really care about flow control and am only interes

Re: [Gambas-user] Serial Port Change Events Not Working aft er Upgrade to Karmic

2009-12-01 Thread Benoît Minisini
>Thanks for the suggestion Ricardo. >I have already compiled G2.18 from source onto Ubuntu 9.04. The > application was working fine on Ubuntu 9.04 with G2.8 but fails with > G2.18, so this makes me think that there is a problem which may have been > introduced between G2.8 and G2.13 (th

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Tony
Thanks for the suggestion Ricardo. I have already compiled G2.18 from source onto Ubuntu 9.04. The application was working fine on Ubuntu 9.04 with G2.8 but fails with G2.18, so this makes me think that there is a problem which may have been introduced between G2.8 and G2.13 (the b

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Ricardo Díaz Martín
Tony, Try to compile gambas2 again. I got similar problem with apps after upgrade ubuntu from 9.04 yo 9.10 and it was necessary to do this: sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev

[Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Tony
Hi, I have a Gambas2 application (gb.qt) checking for status change events on the CTS, RI and DSR signals (SerialPort-gb.net class) of a USB to serial converter (Prolific pl2303) which works fine on Ubuntu 9.04 (Gambas2 2.8 and kernel 2.6.28-16-generic 32bit). After upgrade to Ubuntu 9.10 (Gam

Re: [Gambas-user] serial port.

2009-10-19 Thread abdurrahman ulusoy
Thanks. --- 19/10/09 Pzt tarihinde nando şöyle yazıyor: Kimden: nando Konu: Re: [Gambas-user] serial port. Kime: "mailing list for gambas users" Tarihi: 19 Ekim 2009 Pazartesi, 18:23 If you want to send a binary 37 to serial port Sport, then you can do any of these: 1. Pr

Re: [Gambas-user] serial port.

2009-10-19 Thread nando
durrahman ulusoy To: mailing list for gambas users Sent: Sun, 18 Oct 2009 09:57:25 -0700 (PDT) Subject: [Gambas-user] serial port. > hi i want to send data to serial port. when i send a number (for exam: 37) > , what is writing gambas to seri port (100101 or 37) ? if gambas write

[Gambas-user] serial port.

2009-10-18 Thread abdurrahman ulusoy
hi i want to send data to serial port.  when i send  a number  (for exam: 37) ,  what is writing gambas to seri port (100101 or 37) ? if gambas  write (37) how can i convert decimaltobinary. (are there any module or command  ?  

Re: [Gambas-user] serial port

2009-10-14 Thread Benoît Minisini
> Salut, > > I tried to follow what you wrote, here you are the result. > > >From the other side when working on it and waiting for a little longer > > time, > > I recognised that the program is not permanently frozen, after several 10 > seconds it came back to normal. So at the end it's not so

Re: [Gambas-user] serial port

2009-10-13 Thread Robert JUHASZ
Salut, I tried to follow what you wrote, here you are the result. >From the other side when working on it and waiting for a little longer time, I recognised that the program is not permanently frozen, after several 10 seconds it came back to normal. So at the end it's not so serious as expected.

Re: [Gambas-user] serial port

2009-10-13 Thread Benoît Minisini
> Hello, > > At the end it works almost fine to try to open the serial port and if no > error I suppose that it works. > Now I try to use it. I do the same for ttyS0..S9. > > On the ttyS0 it finds the serial port correctly, on the S1, S3-S9 it finds > out that there is no serial port. > On the tt

Re: [Gambas-user] serial port

2009-10-13 Thread Robert JUHASZ
Hello, At the end it works almost fine to try to open the serial port and if no error I suppose that it works. Now I try to use it. I do the same for ttyS0..S9. On the ttyS0 it finds the serial port correctly, on the S1, S3-S9 it finds out that there is no serial port. On the ttyS2 it finds somet

Re: [Gambas-user] serial port

2009-09-28 Thread Robert JUHASZ
thanks a lot !!! 2009/9/28 Werner > Robert JUHASZ wrote: > > Hello, > > > > One more question to the same project. > > It is a measurement program where the user can give equations for > calculated > > quantities. Is there an easy way in Gambas to execute them? For example > if I > > have a stri

Re: [Gambas-user] serial port

2009-09-28 Thread Werner
Robert JUHASZ wrote: > Hello, > > One more question to the same project. > It is a measurement program where the user can give equations for calculated > quantities. Is there an easy way in Gambas to execute them? For example if I > have a string (formula) of "2*3+6*(4-1)" how can I calculate the r

Re: [Gambas-user] serial port

2009-09-28 Thread Robert JUHASZ
>> > >> -Fernando > >> > >> > >> -- Original Message --- > >> From: yuhej > >> To: gambas-user@lists.sourceforge.net > >> Sent: Fri, 18 Sep 2009 21:08:04 -0700 (PDT) > >> Subject: [Gambas-user] s

Re: [Gambas-user] serial port

2009-09-21 Thread Mike
est to see if it exists, but you >> may be changing parameters and stealing chars from an existing connection. >> I've had this happen tooreally messes things up. >> >> -Fernando >> >> >> -- Original Message --- >> From: yuhej >&

Re: [Gambas-user] serial port

2009-09-20 Thread Mike
est to see if it exists, but you >> may be changing parameters and stealing chars from an existing connection. >> I've had this happen tooreally messes things up. >> >> -Fernando >> >> >> -- Original Message --- >> From: yuhej >&

Re: [Gambas-user] serial port

2009-09-19 Thread Robert JUHASZ
ng connection. > I've had this happen tooreally messes things up. > > -Fernando > > > -- Original Message --- > From: yuhej > To: gambas-user@lists.sourceforge.net > Sent: Fri, 18 Sep 2009 21:08:04 -0700 (PDT) > Subject: [Gambas-user] serial port

Re: [Gambas-user] serial port

2009-09-19 Thread nando
From: yuhej To: gambas-user@lists.sourceforge.net Sent: Fri, 18 Sep 2009 21:08:04 -0700 (PDT) Subject: [Gambas-user] serial port > Hello, > > I can see that Gambas can handle the serial ports which is a very good news > for me. > Can someone tell me how can I get the list of th

Re: [Gambas-user] serial port

2009-09-18 Thread Lee McPherson
yuhej wrote: > I can see that Gambas can handle the serial ports which is a very good news > for me. > Can someone tell me how can I get the list of the serial ports of my > computer? I wish to make an autodetect function and only allow to select > from the working serial ports. > > Robi > I thi

[Gambas-user] serial port

2009-09-18 Thread yuhej
Hello, I can see that Gambas can handle the serial ports which is a very good news for me. Can someone tell me how can I get the list of the serial ports of my computer? I wish to make an autodetect function and only allow to select from the working serial ports. Robi -- View this message in co