Re: some questions about bandwidth calculation

2014-02-16 Thread Alan Stern
On Sun, 16 Feb 2014, vichy wrote: > it makes me a little confused. > if we try to send 108 bytes to FS iso ep over HS hub. > shouldn't we use below formula to calculate what bus time need for? > NS_TO_US (think_time + usb_calc_bus_time ( > dev->speed, is_input, 1, 108)); That

Re: some questions about bandwidth calculation

2014-02-16 Thread vichy
hi alan: 2014-02-14 23:36 GMT+08:00 Alan Stern : > On Fri, 14 Feb 2014, vichy wrote: > >> hi Alan: >> >> > I don't understand your question. >> > >> > At full speed (12 Mb/s), the time required to transfer 188 bytes is >> > >> > (188 bytes) * (8 bits/byte) / (12 b/us) = 125.33 us, >> > >>

Re: some questions about bandwidth calculation

2014-02-14 Thread Alan Stern
On Fri, 14 Feb 2014, vichy wrote: > hi Alan: > > > I don't understand your question. > > > > At full speed (12 Mb/s), the time required to transfer 188 bytes is > > > > (188 bytes) * (8 bits/byte) / (12 b/us) = 125.33 us, > > > > which is greater than 125 us. > > @@ -1412,7 +1412,7 @@ si

Re: some questions about bandwidth calculation

2014-02-14 Thread vichy
hi Alan: > I don't understand your question. > > At full speed (12 Mb/s), the time required to transfer 188 bytes is > > (188 bytes) * (8 bits/byte) / (12 b/us) = 125.33 us, > > which is greater than 125 us. @@ -1412,7 +1412,7 @@ sitd_slot_ok ( */ uf = uframe & 7;

Re: some questions about bandwidth calculation

2014-02-10 Thread Alan Stern
On Mon, 10 Feb 2014, vichy wrote: > >> 2. in tt_available, below is used to check whether tt time is bigger than > >> 125us > >> if (125 < usecs) { > >> int ufs = (usecs / 125); > >> int i; > >> for (i = uframe; i < (uframe + ufs) && i < 8; i++) > >>

Re: some questions about bandwidth calculation

2014-02-10 Thread vichy
hi Alan: 2014-02-07 23:40 GMT+08:00 Alan Stern : > On Fri, 7 Feb 2014, vichy wrote: > >> Hi Alan: >> >> 2014-01-31 2:23 GMT+08:00 Alan Stern : >> > On Fri, 31 Jan 2014, vichy wrote: >> > >> >> Hi all: >> >> I have some questions ab

Re: some questions about bandwidth calculation

2014-02-07 Thread Alan Stern
On Fri, 7 Feb 2014, vichy wrote: > Hi Alan: > > 2014-01-31 2:23 GMT+08:00 Alan Stern : > > On Fri, 31 Jan 2014, vichy wrote: > > > >> Hi all: > >> I have some questions about bandwidth calculation > >> 1. why tt time need to include one maxp bus

Re: some questions about bandwidth calculation

2014-02-07 Thread vichy
Hi Alan: 2014-01-31 2:23 GMT+08:00 Alan Stern : > On Fri, 31 Jan 2014, vichy wrote: > >> Hi all: >> I have some questions about bandwidth calculation >> 1. why tt time need to include one maxp bus time ? >> qh->tt_usecs = NS_TO_US (think_time + >>

Re: some questions about bandwidth calculation

2014-01-30 Thread Alan Stern
On Fri, 31 Jan 2014, vichy wrote: > Hi all: > I have some questions about bandwidth calculation > 1. why tt time need to include one maxp bus time ? > qh->tt_usecs = NS_TO_US (think_time + > usb_calc_bus_time (urb->dev->speed, >

some questions about bandwidth calculation

2014-01-30 Thread vichy
Hi all: I have some questions about bandwidth calculation 1. why tt time need to include one maxp bus time ? qh->tt_usecs = NS_TO_US (think_time + usb_calc_bus_time (urb->dev->speed, is_input, 0, max_packet (maxp))); 2. in tt_available,