[Gambas-user] serial port
Benoît Minisini
gambas at ...1...
Tue Oct 13 19:06:24 CEST 2009
> 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 something (no error when I open). I don't know what
> it is and no idea how to find out.
>
> For those where I found the port, I ask for the equipment ID to identify if
> it's there or not. OK for the S0, but the ttyS2 completely freeze and when
> I try to close the port there is no reaction.
>
> In such a case (TRY mySerialPort.close --- no response, no error message
> but the program frozen) is there any way to stop the process with a
> timeout or does anyone has an ide ho to handle it?
>
> Any help would be appreciated.
>
> Robi
>
Apparently when closing a serial port, the gb.net component does not just call
the close() system call.
Can you break the frozen program with gdb and see where it is locked?
$ gdb /usr/bin/gbx2 <pid of frozen program>
...
(gdb) bt
...
Send me the result of the 'bt' command.
Regards,
--
Benoît Minisini
More information about the User
mailing list