Re: USB modem

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stuart Henderson <stu@...>
Cc: <misc@...>
Subject: Re: USB modem
Date: Wednesday, April 9, 2008 - 7:51 am

On Wed, Apr 9, 2008 at 12:12 PM, Stuart Henderson wrote:

:)

I've just try cuaU0 and the trace is nice and more understandable.

But I think I've always got a problem with the setlinecoding

When I add trace into the kernel I saw that the function
umodem_set_line_coding failed and return the value 0x0f.
In the usbdi.h the 0x0f value equals to the USBD_TIMEOUT
define.

So I think I made a bad response to the SET_LINE_CODING.

What I am doing exactly on device side:

DEVICE RECV 8 BITS (ENDPOINT0) : 0x21 0x20 0x00 0x00 0x00 0x00 0x07 0x00
DEVICE RECV 7 BITS (ENDPOINT0) : 0x80 0x25 0x00 0x00 0x00 0x00 0x08

The first receive is do because I intercept an interrupt that there
are 8 bits available
on the endpoint0 after i read directly 7 bits for getting the end of
this request.
Does I forget something ? Does I send some ack to the host, or data on the
interrupt endpoint ?

thanks in advance.

--
Gallon sylvestre
Rathaxes Core Developper / LSE researcher
kernel developer for adeneo and OpenBSD fan
http://devsyl.blogspot.com/ | www.rathaxes.eu

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

Messages in current thread:
Re: USB modem, Stuart Henderson, (Wed Apr 9, 6:12 am)
Re: USB modem, syl, (Wed Apr 9, 7:51 am)