Re: Correlating SOF with host system time

2012-12-06 Thread Alan Stern
On Thu, 6 Dec 2012, Stefan Tauner wrote: > On Wed, 5 Dec 2012 10:35:31 -0500 (EST) > Alan Stern wrote: > > Your theory omits an important point: The host system generally doesn't > > care exactly when frames start. Forcing it to keep track of these > > events adds overhead. > > Yes, it does,

Re: Correlating SOF with host system time

2012-12-05 Thread Stefan Tauner
On Wed, 5 Dec 2012 10:35:31 -0500 (EST) Alan Stern wrote: > On Wed, 5 Dec 2012, Stefan Tauner wrote: > > > > Running NTP over a USB-based network link would certainly be the > > > easiest solution, if your device can support it. Over the long run, it > > > might even be more accurate on avera

Re: Correlating SOF with host system time

2012-12-05 Thread Stefan Tauner
On Thu, 6 Dec 2012 08:16:26 +0800 Xiaofan Chen wrote: > Interestingly you mentioned this article. Back in 2008, we have > some discussions about this topic in Microchip forum. > http://www.microchip.com/forums/tm.aspx?m=329799 My favorite search engine told me about it of course while i did my r

Re: Correlating SOF with host system time

2012-12-05 Thread Xiaofan Chen
On Wed, Dec 5, 2012 at 8:58 AM, Stefan Tauner wrote: > On Tue, 4 Dec 2012 16:27:00 -0500 (EST) > Alan Stern wrote: > >> I don't think referencing times to SOF packets is the best approach, >> although it probably is the approach that would yield the most >> precision. How precise do you want you

Re: Correlating SOF with host system time

2012-12-05 Thread Alan Stern
On Wed, 5 Dec 2012, Stefan Tauner wrote: > > Running NTP over a USB-based network link would certainly be the > > easiest solution, if your device can support it. Over the long run, it > > might even be more accurate on average than using SOF packets. > > We are talking about microcontrollers

Re: Correlating SOF with host system time

2012-12-04 Thread Stefan Tauner
On Tue, 4 Dec 2012 16:27:00 -0500 (EST) Alan Stern wrote: > I don't think referencing times to SOF packets is the best approach, > although it probably is the approach that would yield the most > precision. How precise do you want your synchronization to be? It should be below 1ms accuracy, b

Re: Correlating SOF with host system time

2012-12-04 Thread Alan Stern
On Tue, 4 Dec 2012, Stefan Tauner wrote: > Hi! > > My broad goal is to transmit the current system time somewhat > accurately to devices (namely fullspeed microcontrollers). > > I'd like to be able correlate some instant of a USB frame (i.e. a point > in time with a known offset to the SOF) with

Correlating SOF with host system time

2012-12-04 Thread Stefan Tauner
Hi! My broad goal is to transmit the current system time somewhat accurately to devices (namely fullspeed microcontrollers). I'd like to be able correlate some instant of a USB frame (i.e. a point in time with a known offset to the SOF) with the host's system time. The host PC can then create a