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