On Wed, 2008-08-27 at 14:29 +0100, Dave Howorth wrote:
Sorry, I can't answer that but I'd be interested to know too :)
I have a couple of thoughts though. You seem quite focussed on the possibility that the problem is related to X - is there a particular reason for that?
Not really. I am just thinking of any apps that may fiddle with the serial port when my app is running. I don't want to eliminate that over some kernel thing.
Can you set up a test system without X - or with X remoted to a different physical machine - to see if the problem goes away?
I am setting up something like that now. Not there yet. I am running my app remotely, but I need to remove the X running on the actual machine with the serial port in question.
One other difference Per mentioned is that his applications write to the serial port. Is there any way to try that on your system in case there's some hardware or driver glitch?
This happens on different hardware. So I feel rather sure it is not a hardware glitch. Leaving, possibly, a driver glitch.
When the problem occurs, are you able to check the status of the serial port? Either from within your application or by looking in /proc etc. Has the port somehow been set to non-blocking?
I would love to know how. The serial settigns (baud rate and all) can, I think, be determined. But blocking mode is a generic file descriptor setting that I do not think is reported in /proc. I am adding a trace to see if the flag is getting changed when the problem occurs. No results yet. One more detail, I run the serial port in canonical mode. So the read calls return only when there is a complete line of data. Which is how GPS NMEA records are reported. I am guessing that well tested apps like PPP do not run the serial port in this mode. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 And remember: It is RSofT and there is always something under construction. It is like talking about large city with all constructions finished. Not impossible, but very unlikely. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org