[speedtouch] help needed with testing auto-detect Rev patch

2004-02-08 Thread John Hysted

I have produced a patch for modem_run which should auto-detect the modem
revision and execute the appropriate code for Rev , 0200 and 0400
modems, but as I only have a green frog I am unable to test this.
For me, the patch fixes the Error reading usb urb under heavy load on
version 1.2 problem by reverting to alternate endpoint 2 when a Rev 
modem is detected.
As the patch file is 16kb, I have not attached it, but it is available as
john5_patch.patch from http://www.hystedjp.pwp.blueyonder.co.uk/ .
Could you please post the Rev of your modem (P:  Vendor=06b9 ProdID=4061
Rev= 0.00 from /proc/bus/usb/devices ) and the result of running modem_run
with the option -v 1 set. I am interested in the line that says 08:43:40
modem_run[46] Rev  detected, revision 0 chosen.
Thanks



Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] Re: 330/Rev 400 success

2004-02-08 Thread Martin Galpin

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 08 February 2004 03:37 pm, Leonard den Ottolander wrote:
 Hello Martin,

  I finally got my own patch to work today! So, I'm free once again.

 Great! Thanks for putting in your effort.

  http://www.nemohackers.org/speedtouch.php

 The patch available there seems to be mangled.

 Bye,
 Leonard.

So it does. I apoligise for that, I think gFTP messed up alittle.

It's fixed now.

Martin
- -- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAJltA3bF34WXq1XsRAin5AKC8wQWmoK1mMHdRwjRtZU2roYvIGACgyg1j
XmVj9z4Ds7yD8sv1qpbg94w=
=HUMb
-END PGP SIGNATURE-
Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] Re: help needed with testing auto-detect Rev patch

2004-02-08 Thread Martin Galpin

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 08 February 2004 09:48 am, John Hysted wrote:
 I have produced a patch for modem_run which should auto-detect the modem
 revision and execute the appropriate code for Rev , 0200 and 0400
 modems, but as I only have a green frog I am unable to test this.
 For me, the patch fixes the Error reading usb urb under heavy load on
 version 1.2 problem by reverting to alternate endpoint 2 when a Rev 
 modem is detected.
 As the patch file is 16kb, I have not attached it, but it is available as
 john5_patch.patch from http://www.hystedjp.pwp.blueyonder.co.uk/ .
 Could you please post the Rev of your modem (P:  Vendor=06b9 ProdID=4061
 Rev= 0.00 from /proc/bus/usb/devices ) and the result of running modem_run
 with the option -v 1 set. I am interested in the line that says 08:43:40
 modem_run[46] Rev  detected, revision 0 chosen.
 Thanks



 Liste de diffusion modem ALCATEL SpeedTouch USB
 Pour se désinscrire :
 mailto:[EMAIL PROTECTED]

I'll try it just as soon as this large download finishes; about 8 hours from 
now.

Martin

- -- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAJlvE3bF34WXq1XsRAtmcAJ9hW4D50TMtytWucn2LBWauGkTb+QCeMZA0
EiJlKWih7awc7tsQA8sAEzU=
=9tpS
-END PGP SIGNATURE-
Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] Re: help needed with testing auto-detect Rev patch

2004-02-08 Thread Gary Bilkus
John,
I don't think your patched version will work with a silver rev 4 modem 
in kernel driver mode.
As per the thread involving myself and others last week, the v4 software 
doesn't report status back after connecting, as a result of which the 
subprocess after fork() will not
signal the main process to continue, but, more seriously, it will never 
execute the pusb_ioctl(fdusb,1,1,NULL) which is necessary to free the 
driver to attach to the pppoatm code.
As I understand it, this doesn't matter if you are using the pppoa 
userspace code, so many users of the driver won't care. However, for 
those of us usuing 2.6 kernels, only the kernel space driver currently 
works.

Rgds,
Gary

John Hysted wrote:

I have produced a patch for modem_run which should auto-detect the modem
revision and execute the appropriate code for Rev , 0200 and 0400
modems, but as I only have a green frog I am unable to test this.
For me, the patch fixes the Error reading usb urb under heavy load on
version 1.2 problem by reverting to alternate endpoint 2 when a Rev 
modem is detected.
As the patch file is 16kb, I have not attached it, but it is available as
john5_patch.patch from http://www.hystedjp.pwp.blueyonder.co.uk/ .
Could you please post the Rev of your modem (P:  Vendor=06b9 ProdID=4061
Rev= 0.00 from /proc/bus/usb/devices ) and the result of running modem_run
with the option -v 1 set. I am interested in the line that says 08:43:40
modem_run[46] Rev  detected, revision 0 chosen.
Thanks



Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]

   

  


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] Re: 330/Rev 400 success

2004-02-08 Thread Leonard den Ottolander

Hello Martin,

   http://www.nemohackers.org/speedtouch.php
 
  The patch available there seems to be mangled.

 So it does. I apoligise for that, I think gFTP messed up alittle.
 
 It's fixed now.

http://www.nemohackers.org/speedtouch/ :

modem_run.diff  08-Feb-2004 10:4219k

still appears mangled. Sorry :( .

Bye,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research



Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] Re: 330/Rev 400 success

2004-02-08 Thread Martin Galpin

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 08 February 2004 04:24 pm, Leonard den Ottolander wrote:
 Hello Martin,

http://www.nemohackers.org/speedtouch.php
  
   The patch available there seems to be mangled.
 
  So it does. I apoligise for that, I think gFTP messed up alittle.
 
  It's fixed now.

 http://www.nemohackers.org/speedtouch/ :

 modem_run.diff  08-Feb-2004 10:4219k

 still appears mangled. Sorry :( .

It's fixed now!

Sorry for that.

Martin

- -- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAJmhV3bF34WXq1XsRAuM8AKD1n+OJPlDTIiS96KBlcWEb39p77gCfV0Bv
JYy/f7zFUCmGt2iBDv7L0KE=
=91Rq
-END PGP SIGNATURE-
Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] Re: help needed with testing auto-detect Rev patch

2004-02-08 Thread John Hysted

Would it be likely to work if I replaced

 if (revision==4)
  timed_out = 0;

which is an arbitrary hack which assumes everything worked for Rev 0400
after timeout seconds, with

 if (revision==4) {
if (timed_out) {
if(signal_kernel) {
pusb_ioctl(fdusb, 1, 1, NULL);
}
timed_out = 0;
}
}

which does the same thing, but adds the command the subprocess will never
run. Or is the subprocess still running and causing trouble?
- Original Message - 
From: Gary Bilkus [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 08, 2004 4:11 PM
Subject: [speedtouch] Re: help needed with testing auto-detect Rev patch


 John,
 I don't think your patched version will work with a silver rev 4 modem
 in kernel driver mode.
 As per the thread involving myself and others last week, the v4 software
 doesn't report status back after connecting, as a result of which the
 subprocess after fork() will not
 signal the main process to continue, but, more seriously, it will never
 execute the pusb_ioctl(fdusb,1,1,NULL) which is necessary to free the
 driver to attach to the pppoatm code.
 As I understand it, this doesn't matter if you are using the pppoa
 userspace code, so many users of the driver won't care. However, for
 those of us usuing 2.6 kernels, only the kernel space driver currently
 works.

 Rgds,
 Gary



Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] Re: help needed with testing auto-detect Rev patch

2004-02-08 Thread Gary Bilkus
That might work. What I actually did was put a timeout in the subprocess:
(from line 1090 of original file)

memset(prevbuf, 0, TOTAL);
static int timeoutfirsttime = 25000;
while(1) {

int ret;
unsigned char lbuf[6];

/* We can try reading the int endpoint */
ret = pusb_endpoint_read(ep_int, lbuf, sizeof(lbuf), 
timeoutfirsttime);
timeoutfirsttime=0;
   
/* Ok we failed, perhaps the device has been disconnected  */
if(ret  0  errno == ENODEV) {
report(0, REPORT_INFO, Device disconnected, shutting 
down);
break;
}


Your version has the advantage that the timeout is settable rather than 
hard coded, but the disadvantage that the code relating to the first 
read in the child process will be triggered whenever a read does 
eventually occur, and that is probably not a good thing, so you should 
probably also make that entire section of the child process conditional 
on not v4

Gary

John Hysted wrote:

Would it be likely to work if I replaced

 if (revision==4)
  timed_out = 0;

which is an arbitrary hack which assumes everything worked for Rev 0400
after timeout seconds, with

 if (revision==4) {
if (timed_out) {
if(signal_kernel) {
pusb_ioctl(fdusb, 1, 1, NULL);
}
timed_out = 0;
}
}

which does the same thing, but adds the command the subprocess will never
run. Or is the subprocess still running and causing trouble?
- Original Message - 
From: Gary Bilkus [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 08, 2004 4:11 PM
Subject: [speedtouch] Re: help needed with testing auto-detect Rev patch


  

John,
I don't think your patched version will work with a silver rev 4 modem
in kernel driver mode.
As per the thread involving myself and others last week, the v4 software
doesn't report status back after connecting, as a result of which the
subprocess after fork() will not
signal the main process to continue, but, more seriously, it will never
execute the pusb_ioctl(fdusb,1,1,NULL) which is necessary to free the
driver to attach to the pppoatm code.
As I understand it, this doesn't matter if you are using the pppoa
userspace code, so many users of the driver won't care. However, for
those of us usuing 2.6 kernels, only the kernel space driver currently
works.

Rgds,
Gary





Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]

   

  


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] LCP timeout sending Config-Requests

2004-02-08 Thread Paul Smith

Dear All

I have tried to connect my ADSL modem (Alcatel Speedtouch USB modem, the 
green one) under Mandrake 9.2. (I have also tried with RedHat 9.) I 
suspect that everything is correctly installed but when I try to 
establish the connection, I get a message that complains about my 
username/password. To be precise, I get the following message in the 
file /var/log/messages: LCP: timeout sending Config-Requests. I am 
absolutely sure that the introduced pair username/password is correct. 
Could somebody here please help me?

Thank you a lot in advance!

Paul

Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] Re: usb-urb - error. I can not connet

2004-02-08 Thread nacho

Dear all,

I receive the next messages

usbdevfs:USBDEVFS_BULK failed dev 2 ep 0x7 len 53 net 110

Some suggestion to this error?.

Although, ifconfig ppp0 provide a configuration, it does not connect.

I have the two lights of the modem in green, but I am not sure that the
system has realised that I have a modem connected..

What could I do?

Thanks

Nacho

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nombre de nacho
Enviado el: miércoles, 04 de febrero de 2004 17:15
Para: [EMAIL PROTECTED]
Asunto: [speedtouch] Re: usb-urb - error. I can not connet



Dear Duncan

I have tried thanks!.

now ifconfg ppp0 provide a configuration,

But I received the message
usbdevfs:USBDEVFS_BULK failed dev 2 ep 0x7 len 53 net 110

I have asked information to my DSL provider
- ITV 8
- ICV 32
- Encapsulation PPPoE(RFC 2516)

Do I have to configure PPPoE instead PPPoA? if yes, do you know where I can
find some help?

Regards and thanks

Nacho

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nombre de Duncan Sands
Enviado el: miércoles, 04 de febrero de 2004 14:21
Para: [EMAIL PROTECTED]; nacho
Asunto: [speedtouch] Re: usb-urb - error. I can not connet



 I have installed RedHat 9.0 in a PC with a motherboard ASUS P4P800 Deluxe
 (Chipset intel 865 PE) and I am trying to connect to my DSL provider
 (Telefonica España) I have a speedtouch 330

Hi Nacho, trying adding
-e 1
to the pppoa3 options.

Ciao,

Duncan.

Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire :
mailto:[EMAIL PROTECTED]




Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire :
mailto:[EMAIL PROTECTED]




Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] Re: LCP timeout sending Config-Requests

2004-02-08 Thread Dave Thorn

On Sun, Feb 08, 2004 at 10:30:12PM +, Dave Thorn wrote:
 
 I know you say it's definitely not this, so I'm probably just irritating
 you, but I was getting this and thought I'd set my user/pass correctly;
 it turns out I only had it in pap-secrets and neededn't to put it in
  ^^^

Bastard vi; that's meant to be ...and needed to put it in

-- 
dave thorn

Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]




[speedtouch] 330/Rev 400 (silver modem) - Got it working!

2004-02-08 Thread Michael Eccleston

Dear All,

Thanks to the efforts of Martin Galpin and Lewis Jardine, I have now also got 
my REV 4.0 silver modem working.

Since a lot of people are asking me for the modified modem_run.c file that 
Martin sent me I have put this and the ZZZLP2.eni on one of my web servers.

http://ecclestons.biz/speedtouch


I have only got the usermode kernel driver to work there seems to be a timing 
problem with the kernel mode driver.



Mike 
  

Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]