login
Header Space

 
 

Real time USB2Serial devices and behaivor

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: lkml <linux-kernel@...>, <linux-rt-users@...>, <linux-usb@...>
Date: Wednesday, March 26, 2008 - 11:25 am

At home I'm playing with a real time amateur robotics application with a
micro controller talking over its serial port to a Linux box running an RT
kernel and some RT user mode software to suck in the serial port data
and do some processing in real time.  One example of what I want to do
with this type of configuration is to create a type of IMU thing and run
the data through a kalman filter to see how good I can do with my
hardware.

I'll be sending data regularly at data rates between 50 and 500 HZ from
the MCU (depending on mode)

Anyway, I have the RT code and the system prototyped using the hardware
serial port on my desktop and I'm getting rock solid RT delivery times
of the data +/- 30usec.  While stressing the system in CPU and disk. (I
still need to do the test while flood pinging the box)  However; when I
use my USB dongle instead of the hardware serial port the system falls
over WRT real time behavior.

I'm just starting to look into the behavior now but has anyone looked at
the RT'ness of USB2Serial + USB stack yet?  I would like to see what
other folks have done.  My googleing last night didn't get any useful
hits.

BTW Why does the PL2303 have a 1KB buffer for incoming data?

I'm a bit green at RT work at this level.  What are the best ways for
drilling down to figure out what the problems are so I can make a patch?

Thanks for any advice or pointers.  

--mgross
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Real time USB2Serial devices and behaivor, mark gross, (Wed Mar 26, 11:25 am)
Re: Real time USB2Serial devices and behaivor, Jon Masters, (Thu Apr 3, 2:24 am)
Re: Real time USB2Serial devices and behaivor, Greg KH, (Wed Mar 26, 12:27 pm)
Re: Real time USB2Serial devices and behaivor, Ming Lei, (Thu Apr 3, 10:26 am)
Re: Real time USB2Serial devices and behaivor, Greg KH, (Thu Apr 3, 11:52 am)
Re: Real time USB2Serial devices and behaivor, Peter Zijlstra, (Thu Apr 3, 10:45 am)
Re: Real time USB2Serial devices and behaivor, mark gross, (Wed Mar 26, 12:49 pm)
Re: Real time USB2Serial devices and behaivor, David Brownell, (Thu Mar 27, 3:48 pm)
Re: Real time USB2Serial devices and behaivor, Lennart Sorensen, (Thu Mar 27, 5:00 pm)
Re: Real time USB2Serial devices and behaivor, David Brownell, (Thu Mar 27, 5:08 pm)
Re: Real time USB2Serial devices and behaivor, Lennart Sorensen, (Fri Mar 28, 9:38 am)
Re: Real time USB2Serial devices and behaivor, Greg KH, (Wed Mar 26, 7:24 pm)
Re: Real time USB2Serial devices and behaivor, Alan Stern, (Wed Mar 26, 10:58 pm)
Re: Real time USB2Serial devices and behaivor, Greg KH, (Thu Mar 27, 12:13 am)
speck-geostationary