[speedtouch] Re: SpeedTouch 330 on SuSE8.1
Hello Tim, 1-Thank you for your patch that made it possible to use my adsl usb modem st330 2-I confirm that you can establish the connection without using pppoa3 "-e 1" (probably for the reason you gave). For sure I send here my /proc/bus/usb/devices (I am using Linux Mandrake 8.2) T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 11/900 us ( 1%), #Int= 1, #Iso= 0 D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 0.00 S: Product=USB UHCI Root Hub S: SerialNumber=b400 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=06b9 ProdID=4061 Rev= 2.00 S: Manufacturer=ALCATEL S: Product=Speed Touch 330 S: SerialNumber=0090D074C937 C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl= 50ms I: If#= 1 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) I: If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms E: Ad=87(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms I: If#= 1 Alt= 2 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms E: Ad=87(I) Atr=01(Isoc) MxPS= 640 Ivl= 1ms I: If#= 1 Alt= 3 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms E: Ad=87(I) Atr=01(Isoc) MxPS= 960 Ivl= 1ms I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=05(O) Atr=02(Bulk) MxPS= 8 Ivl= 0ms E: Ad=85(I) Atr=02(Bulk) MxPS= 8 Ivl= 0ms T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=12 MxCh= 4 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=058f ProdID=9254 Rev= 1.00 S: Manufacturer=ALCOR S: Product=Generic USB Hub C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=255ms and the diff file with the /proc/bus/usb/devices after the connection: 19,20c19,20 < I: If#= 1 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) < I: If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) --- > I: If#= 1 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbdevfs > I: If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbdevfs 24c24 < I: If#= 1 Alt= 2 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) --- > I: If#= 1 Alt= 2 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbdevfs 28c28 < I: If#= 1 Alt= 3 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) --- > I: If#= 1 Alt= 3 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbdevfs Christine Noot On Tue, 3 Dec 2002 00:30:02 + "Tim Woodall" <[EMAIL PROTECTED]> wrote: > On Mon, 2 Dec 2002 [EMAIL PROTECTED] wrote: > > > Hello Tim, > > > > Indeed it seems parameter -e 1 is not necessary for making a connection, > > but for modem_run it is. > > I give you the results of the contents of /proc/bus/ubs/devices before and > > after modem_run is executed. Hope you find something in it. > > By the way: it is Mandrake 9.0 that I use now because SuSE8.1 started to > > give problems with the LiteOn CD-RW, to which it could no longer get > > access. > > > > > Thanks for that. There isn't anything clever happening. > > pppoa3 doesn't actually set the endpoint to use at all. > (I suspect it should!) unless you specify a -e parameter. > > My guess is that once modem_run has set the alternate endpoint to use, > that is the default that all other programs will chose to use. > > So by default both modem_run and pppoa3 are using alternate 2 while > once you run modem_run with -e 1, that is the default that pppoa3 > will pick up. > > (I would suggest that you don't rely on this and explicitly set the > endpoint (-e 1) for pppoa3 as well as, in the future, someone may change > the way that modem_run is working and you will find that the connection > will break for no aparent reason) > > It's also possible that everyone is defaulting to alternate 1 for > pppoa3 (as that is the first alternate with endpoint 87 available) > [EMAIL PROTECTED] Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe
[speedtouch] Re: SpeedTouch 330 on SuSE8.1
On Mon, 2 Dec 2002 [EMAIL PROTECTED] wrote: > Hello Tim, > > Indeed it seems parameter -e 1 is not necessary for making a connection, > but for modem_run it is. > I give you the results of the contents of /proc/bus/ubs/devices before and > after modem_run is executed. Hope you find something in it. > By the way: it is Mandrake 9.0 that I use now because SuSE8.1 started to > give problems with the LiteOn CD-RW, to which it could no longer get > access. > Thanks for that. There isn't anything clever happening. pppoa3 doesn't actually set the endpoint to use at all. (I suspect it should!) unless you specify a -e parameter. My guess is that once modem_run has set the alternate endpoint to use, that is the default that all other programs will chose to use. So by default both modem_run and pppoa3 are using alternate 2 while once you run modem_run with -e 1, that is the default that pppoa3 will pick up. (I would suggest that you don't rely on this and explicitly set the endpoint (-e 1) for pppoa3 as well as, in the future, someone may change the way that modem_run is working and you will find that the connection will break for no aparent reason) It's also possible that everyone is defaulting to alternate 1 for pppoa3 (as that is the first alternate with endpoint 87 available) Can someone who is on the various USB lists query this? (I'm not a member) as we probably should "fix/document" what the behaviour is. It is not inconceivable that a future kernel may change the default behaviour slightly and everyones modem might stop working. (Note that for the original "stingray" alternates 1,2 and 3 all work so it isn't easy to determine which is the default) Regards, Tim -- God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t," and there was light. http://tjw.hn.org/ http://www.locofungus.btinternet.co.uk/ Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe
[speedtouch] Re: SpeedTouch 330 on SuSE8.1
Hello Tim, Indeed it seems parameter -e 1 is not necessary for making a connection, but for modem_run it is. I give you the results of the contents of /proc/bus/ubs/devices before and after modem_run is executed. Hope you find something in it. By the way: it is Mandrake 9.0 that I use now because SuSE8.1 started to give problems with the LiteOn CD-RW, to which it could no longer get access. Before modem_run T: Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 4 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 2.04 S: Manufacturer=Linux 2.4.19-16mdk ehci-hcd S: Product=VIA Technologies, Inc. USB 2.0 S: SerialNumber=00:14.2 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 0.00 S: Product=USB UHCI Root Hub S: SerialNumber=b000 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 0.00 S: Product=USB UHCI Root Hub S: SerialNumber=b400 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 0.00 S: Product=USB UHCI Root Hub S: SerialNumber=bc00 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=06b9 ProdID=4061 Rev= 2.00 S: Manufacturer=ALCATEL S: Product=Speed Touch 330 S: SerialNumber=0090D05EDE23 C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=50ms I: If#= 1 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) I: If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=87(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms I: If#= 1 Alt= 2 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=87(I) Atr=01(Isoc) MxPS= 640 Ivl=1ms I: If#= 1 Alt= 3 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=87(I) Atr=01(Isoc) MxPS= 960 Ivl=1ms I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=05(O) Atr=02(Bulk) MxPS= 8 Ivl=0ms E: Ad=85(I) Atr=02(Bulk) MxPS= 8 Ivl=0ms T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 0.00 S: Product=USB UHCI Root Hub S: SerialNumber=c000 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms After modem_run -e 1 -m -f /windows/D/Linux/adsl/alcaudsl.sys T: Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 4 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 2.04 S: Manufacturer=Linux 2.4.19-16mdk ehci-hcd S: Product=VIA Technologies, Inc. USB 2.0 S: SerialNumber=00:14.2 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 0.00 S: Product=USB UHCI Root Hub S: SerialNumber=b000 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 0.00 S: Product=USB UHCI Root Hub S: SerialNumber=b400
[speedtouch] Re: SpeedTouch 330 on SuSE8.1
On Sat, 30 Nov 2002 [EMAIL PROTECTED] wrote: > Hello Tim! > > Got things working thanks to the patched modem_run! Tried it on Mandrake > 9.0 because I could not get SuSE8.1 installed correctly again. > I still have to sort out a few things but I guess the biggest hurdle has > been taken. > By the way: I would like to know what you mean by "sorting out > automatically detecting the correct endpoint to use?" > I am certainly willing to try out a few things to ensure that the > SpeedTouch 330 is taken out of the experimental phase. > It's merely that the "correct" endpoint to use depends on finding an endpoint that supports a bulk transfer IIRC /proc/bus/usb/devices for the 330 frog only supports bulk transfers on alternate 1 (The others are isoc) It would be preferable if modem_run and pppoa3 automatically determined an appropriate endpoint to use. (Even better would be for someone to write the code to support isoc - if that is possible - so that the next version of the "frog" can work out of the box :-) I hacked the patch together (I don't have a 330 frog) for people to test with but I don't know how to automatically detect the correct alternate endpoints to use and I don't have the time to find out at the moment. (I suggested a perl script that read /proc/bus/usb/devices :-) Regards, Tim. (From the non 330 frog) [root@heisenberg root]# cat /proc/bus/usb/devices T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 0.00 S: Product=USB UHCI Root Hub S: SerialNumber=1200 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=06b9 ProdID=4061 Rev= 0.00 S: Manufacturer=ALCATEL S: Product=Speed Touch USB S: SerialNumber=0090D00CA58D C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbdevfs E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl= 50ms I: If#= 1 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbdevfs I: If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbdevfs E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms E: Ad=87(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms Bulk available on interface 1, alternate 1 I: If#= 1 Alt= 2 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbdevfs E: Ad=06(O) Atr=02(Bulk) MxPS= 32 Ivl= 0ms E: Ad=07(O) Atr=02(Bulk) MxPS= 32 Ivl= 0ms E: Ad=87(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms Ditto interface 1, alternate 2. I: If#= 1 Alt= 3 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbdevfs E: Ad=06(O) Atr=02(Bulk) MxPS= 16 Ivl= 0ms E: Ad=07(O) Atr=02(Bulk) MxPS= 16 Ivl= 0ms E: Ad=87(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms Ditto alternate 3. I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=05(O) Atr=02(Bulk) MxPS= 8 Ivl= 0ms E: Ad=85(I) Atr=02(Bulk) MxPS= 8 Ivl= 0ms -- God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t," and there was light. http://tjw.hn.org/ http://www.locofungus.btinternet.co.uk/ Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe
[speedtouch] Re: SpeedTouch 330 on SuSE8.1
Hello Tim! Got things working thanks to the patched modem_run! Tried it on Mandrake 9.0 because I could not get SuSE8.1 installed correctly again. I still have to sort out a few things but I guess the biggest hurdle has been taken. By the way: I would like to know what you mean by "sorting out automatically detecting the correct endpoint to use?" I am certainly willing to try out a few things to ensure that the SpeedTouch 330 is taken out of the experimental phase. Ed > >> -- >> Van: Tim Woodall[SMTP:[EMAIL PROTECTED]] >> Verzonden: vrijdag 29 november 2002 20:15:25 >> Aan: [EMAIL PROTECTED] >> Onderwerp: [speedtouch] Re: SpeedTouch 330 on SuSE8.1 >> Automatisch doorgezonden door een regel >> > On Fri, 29 Nov 2002, Vaessen, E.M.J. (Ed) wrote: > >> Has anyone had suces with getting a SpeeTouch USB ADSL modem to work on >> SuSE8.1 (or even 8.0)? >> I tried SuSE's 8.0 approach, followed the instructions of Papillaut and >> also >> tried the BTO-approach. Nothing works. >> The instructions are all clear enough though and all modules, configure >> files and scripts needed are there. >> > > Speedtouch 330 - patch below (search the archives for how to use it, > iirc -e 1 for modem_run and pppoa3 > > > Note to ed gomez - any chance you can put this patch into CVS until > you sort out automatically detecting the correct endpoint to use? > (It works on my non 330 modem and defaults to exactly the behaviour of > the old code so shouldn't break anything for anyone) > > Regards, > > Tim. > > > Index: modem_run.c > === > RCS file: /cvsroot/speedtouch/speedtouch/src/modem_run.c,v > retrieving revision 1.22 > diff -u -r1.22 modem_run.c > --- modem_run.c 8 Sep 2002 22:18:40 - 1.22 > +++ modem_run.c 24 Oct 2002 17:24:31 - > @@ -83,6 +83,7 @@ > **/ > > static int verbose = 0; > +static int alternate_ep = 2; /* historically defaulted to 2 */ > FILE *log = NULL; > > /* > @@ -301,6 +302,8 @@ > file = argv[++i]; > else if(strcmp(argv[i], "-d") == 0 && i + 1 < argc) > devicename = argv[++i]; > + else if(strcmp(argv[i], "-e") == 0 && i + 1 < argc) > + alternate_ep = atoi(argv[++i]); > else if (strcmp(argv[i],"--help")==0) > usage(); > else > @@ -407,7 +410,7 @@ > return(-1); > } > > - if (pusb_set_interface(fdusb,1,2) < 0) { > + if (pusb_set_interface(fdusb,1,alternate_ep) < 0) { > report(0, REPORT_ERROR, "pusb_set_interface"); > return(-1); > } > @@ -480,6 +483,7 @@ > fprintf(stderr, " -s : skip the first 512 bytes read\n"); > fprintf(stderr, " -f microcode : upload this microcode file first\n"); > fprintf(stderr, " -d device: defines the device to use\n"); > + fprintf(stderr, " -e alternate : defines the endpoint alternate > interface to use\n"); > fprintf(stderr, " --help : this message\n"); > exit(-1); > > Index: pppoa3.c > === > RCS file: /cvsroot/speedtouch/speedtouch/src/pppoa3.c,v > retrieving revision 1.28 > diff -u -r1.28 pppoa3.c > --- pppoa3.c 20 Oct 2002 22:32:54 - 1.28 > +++ pppoa3.c 24 Oct 2002 17:24:33 - > @@ -186,6 +186,7 @@ > static char *log_file; > #endif > static int verbose; > +static int alternate_ep = -1;/* historically wasn't set */ > > /* Named pipe filename */ > #define PIPE_NAME_FORMAT "/var/run/pppoa3-modem%d.pipe" > @@ -665,6 +666,20 @@ > report(0, REPORT_ERROR|REPORT_DATE, "pusb_claim_interface 1 failed\n"); > return(-1); > } > + > + if (alternate_ep != -1) { > + /* Historically this wasn't set */ > + /* reconfigure USB (configuration & alternate settings) */ > + if (pusb_set_configuration(fdusb,1) < 0) { > + report(0, REPORT_ERROR, "pusb_set_configuration 1"); > + return(-1); > + } > + > + if (pusb_set_interface(fdusb,1,alternate_ep) < 0) { > + report(0, REPORT_ERROR, "pusb_set_interface"); > +
[speedtouch] Re: SpeedTouch 330 on SuSE8.1
Tim Woodall ([EMAIL PROTECTED]) wrote: > Note to ed gomez - any chance you can put this patch into CVS until > you sort out automatically detecting the correct endpoint to use? > (It works on my non 330 modem and defaults to exactly the behaviour of > the old code so shouldn't break anything for anyone) Yes sure, i'll do it tomorrow because tonight it's my school party If i forget (you know it's the kind of parties where everbody finishes drunk :-) then email me personnally to remind me that i must comiit it :) Bye -- Edouard Gomez Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe
[speedtouch] Re: SpeedTouch 330 on SuSE8.1
On Fri, 29 Nov 2002, Vaessen, E.M.J. (Ed) wrote: > Has anyone had suces with getting a SpeeTouch USB ADSL modem to work on > SuSE8.1 (or even 8.0)? > I tried SuSE's 8.0 approach, followed the instructions of Papillaut and also > tried the BTO-approach. Nothing works. > The instructions are all clear enough though and all modules, configure > files and scripts needed are there. > Speedtouch 330 - patch below (search the archives for how to use it, iirc -e 1 for modem_run and pppoa3 Note to ed gomez - any chance you can put this patch into CVS until you sort out automatically detecting the correct endpoint to use? (It works on my non 330 modem and defaults to exactly the behaviour of the old code so shouldn't break anything for anyone) Regards, Tim. Index: modem_run.c === RCS file: /cvsroot/speedtouch/speedtouch/src/modem_run.c,v retrieving revision 1.22 diff -u -r1.22 modem_run.c --- modem_run.c 8 Sep 2002 22:18:40 - 1.22 +++ modem_run.c 24 Oct 2002 17:24:31 - @@ -83,6 +83,7 @@ **/ static int verbose = 0; +static int alternate_ep = 2; /* historically defaulted to 2 */ FILE *log = NULL; /* @@ -301,6 +302,8 @@ file = argv[++i]; else if(strcmp(argv[i], "-d") == 0 && i + 1 < argc) devicename = argv[++i]; + else if(strcmp(argv[i], "-e") == 0 && i + 1 < argc) + alternate_ep = atoi(argv[++i]); else if (strcmp(argv[i],"--help")==0) usage(); else @@ -407,7 +410,7 @@ return(-1); } - if (pusb_set_interface(fdusb,1,2) < 0) { + if (pusb_set_interface(fdusb,1,alternate_ep) < 0) { report(0, REPORT_ERROR, "pusb_set_interface"); return(-1); } @@ -480,6 +483,7 @@ fprintf(stderr, " -s : skip the first 512 bytes read\n"); fprintf(stderr, " -f microcode : upload this microcode file first\n"); fprintf(stderr, " -d device: defines the device to use\n"); + fprintf(stderr, " -e alternate : defines the endpoint alternate interface to +use\n"); fprintf(stderr, " --help : this message\n"); exit(-1); Index: pppoa3.c === RCS file: /cvsroot/speedtouch/speedtouch/src/pppoa3.c,v retrieving revision 1.28 diff -u -r1.28 pppoa3.c --- pppoa3.c20 Oct 2002 22:32:54 - 1.28 +++ pppoa3.c24 Oct 2002 17:24:33 - @@ -186,6 +186,7 @@ static char *log_file; #endif static int verbose; +static int alternate_ep = -1; /* historically wasn't set */ /* Named pipe filename */ #define PIPE_NAME_FORMAT "/var/run/pppoa3-modem%d.pipe" @@ -665,6 +666,20 @@ report(0, REPORT_ERROR|REPORT_DATE, "pusb_claim_interface 1 failed\n"); return(-1); } + + if (alternate_ep != -1) { + /* Historically this wasn't set */ + /* reconfigure USB (configuration & alternate settings) */ + if (pusb_set_configuration(fdusb,1) < 0) { + report(0, REPORT_ERROR, "pusb_set_configuration 1"); + return(-1); + } + + if (pusb_set_interface(fdusb,1,alternate_ep) < 0) { + report(0, REPORT_ERROR, "pusb_set_interface"); + return(-1); + } + } /* Opens the end point */ ep_data = pusb_endpoint_open(fdusb, EP_DATA_OUT, O_RDWR); @@ -1872,6 +1887,9 @@ else if((strcmp(argv[i], "--device") == 0 || strcmp(argv[i], "-d") == 0) && i + 1 < argc) { device_name = argv[++i]; } + else if((strcmp(argv[i], "--alt-ep") == 0 || strcmp(argv[i], "-e") == +0) && i + 1 < argc) { + alternate_ep = atoi(argv[++i]); + } else if((strcmp(argv[i], "--clean") == 0 || strcmp(argv[i], "-c") == 0)) { clean_previous_instance = 1; } @@ -1968,6 +1986,8 @@ fprintf(stderr, " -d | --device device_filename\n"); fprintf(stderr, " Force usage of the device_filename. Usefull when using\n"); fprintf(stderr, " more than one modem on the same machine\n"); + fprintf(stderr, " -e | --alt-ep alternate_endpoint\n"); + fprintf(stderr, " Use an alternate endpoint interface\n"); #ifndef USE_SYSLOG fprintf(stderr, " -f | --filename filename\n"); fprintf(stderr, " Define the log filename to use (Default %s)\n", log_file); -- God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t," and there was light. http://tjw