On Fri, Aug 18, 2000 at 01:26:32AM +0000, Charlie Flynn wrote:
> Hi George
>
> I have just tried using the alternative driver uhci.o without success.
That is a very strong indication that your code has some ... problems.
> I am not using the synchronous reads but the asynchronous reads _very_ similar to
> the code in the plusb or Pegasus drivers. I am in the process of trying async
> reads just to test.
The synchronous calls are just wrappers for the underlying asynchronous
calls, so there should be no difference between data handling.
> The usb API is wrapped in a network driver structure _very_similar to Plusb
> The receive bulk URB is allocated and submitted during the driver's _open entry
> point.
> At the same time I (successfully) send 64 bytes from the PC to the iPAQ and the
> iPAQ immediately responds with a 63 byte packet. This is recored on the CATC log(
> warning I'm no expert in the USB standard - but I'm learning fast;-)
> The PC code goes like
>
> /* I call this entry point by issuing the command ifconfig x.x.x.x up */
> net_open(struct net_device *dev)
> {
> alloc_urbs(); /* allocates and initialises Tx and Rx URBs - at this point the
> callbacks are registered*/
> tx_test(); /* using the URB allocated before sends 64 bytes to the iPAQ */
How do you initialize the URBs?
> /* at this point the iPAQ receives the 64 bytes and returns a 63 byte packet */
> return 0;
> }
>
> /* call back is as simple as this - it is never called if I send <= 64 bytes. If
> I send > 64 bytes it reports only pktlen-64*/
> my_rx_complete(urb_t *purb)
> {
> printk("RXComplete Called Packet=%d",pkt_count);
> }
I assume you mean urb->actual_length?
> BTW - If I use the asynchronous form of receive bulk transfers. What should I
> expect to see at my callback routine? In otherwords if the iPAQ sends three
> 64byte bulk packets will my call back report 192 bytes in one hit or be called
> three times each with 64 bytes? (assume I have initialised the RX URB with a
> buffer length 1024 )
There's only one callback for one URB, regardless of the number of
transfered bytes.
--
Georg Acher, [EMAIL PROTECTED]
http://www.in.tum.de/~acher/
"Oh no, not again !" The bowl of petunias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]