Re: Problem with delayed data from pl2303 usb serial gps

From: Greg KH
Date: Fri Apr 18 2008 - 11:20:40 EST


On Fri, Apr 18, 2008 at 12:16:08PM +0200, Helge Hafting wrote:
> Problem:
> I run car navigation software on linux, using a gps.
> Getting data from the gps unit in a timely fashion is important, as
> the software says thing like "turn left in 50m". That is useless however,
> if the message arrives 10s after you passed the intersection!

That sounds like a problem either in the device, or in the pl2303 chip,
or possibly, your userspace program.

As a test, enable debugging in the pl2303 driver:
modprobe pl2303 debug=1
or enable it after it is loaded with:
echo 1 > /sys/module/pl2303/parameters/debug

and run your program. Look at the timestamps in the kernel log for when
the pl2303 driver gets your data and compare it to when your userspace
program is getting them.

Let me know if you find anything we can help out with.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/