PDA

Bekijk de volledige versie : USB serial high speed patch



drazvan
01-12-2006, 13:26
Hello everyone,

I was wondering if one of the wizards here could give me hand in compiling a patched usbserial module that supports high speed HSDPA/UMTS devices such as the Huawei E220 HSDPA dongle sold by Vodafone. The patch is very simple, it's described at http://www.junxion.com/opensource/linux_highspeed_usbserial.html . I've tested it on an X86 system with a Huawei E220 USB modem and the results are pretty amazing, the download speed goes up from 30K/second (240kbps) to about 120K/second (960kbps). That's 4 times the non-patched speed.

A patched module would allow you to connect HSDPA or EVDO modems and use them at full speed.

As a side note, I've tried compiling the patched module myself on the device itself (I have the toolchain installed) and it does compile but when I insert it I get the following:

----------------------
usbserial.c: USB Serial support registered for Generic
Unhandled kernel unaligned access in unaligned.c::emulate_load_store_insn, line 481:
$0 : 00000000 1000fc00 00000000 00001003 000012d1 735f6f6e c00a7508 00000003
$8 : 81878800 735f6f6e 00000000 00000000 fffffffb ffffffff 0000000a 00000000
$16: c00a74a8 c008705c c00a74ec 00000001 00000000 c00a7498 81878800 735f6f6e
$24: 81849b80 00000002 81848000 81849cc8 c00986a0 c00a538c
Hi : 00000000
Lo : 0000000a
epc : c008716c Not tainted
Status: 1000fc03
Cause : 80000010
Process insmod (pid: 347, stackpage=81848000)
Stack: 57415548 54204945 6e686365 676f6c6f 00736569 00000000 00000000
00000000 57415548 4d204945 6c69626f 00000065 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 12d11003 00000000 00000000 801d3040 802f37a0 00000000 00000000
00000000 00000000 00000000 00000006 80022514 c00d5af8 c00d51e0 c00a73a0
c00a73c0 ...
Call Trace: [<80022514>] [<c00d5af8>] [<c00d51e0>] [<c00a73a0>] [<c00a73c0>]
[<c00fcc18>] [<c00986a0>] [<c008750c>] [<80030198>] [<c008721c>] [<c0086f14>]
[<c0086f98>] [<80010e64>] [<c0086f14>] [<c0086fd4>] [<c008721c>] [<c0086f14>]
[<c0086f14>] [<c0086fd4>] [<c0086f98>] [<800111cc>] [<c00986a8>] [<c0086f14>]
[<c00986a8>] [<c0086f14>] [<c00986a8>] [<c00861a8>] [<c00a6460>] [<c00a7064>]
[<c00a68bc>] [<c00a6588>] [<c00a653c>] [<8001259c>] [<80030198>] [<c00a3060>]
[<800085a4>]

Code: 5462ffce 24c60014 30e20040 <50400006> 8d230004 90c3000c 910200e6 5462ffc7 24c60014
--------------------------------

Also, here's a dump of the (successful?) compilation process:

------------------------------
[admin@Asus linux-2.4.20]$ make SUBDIRS=drivers/usb/serial modules
make -C drivers/usb/serial CFLAGS="-D__KERNEL__ -I/opt/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I /opt/src/linux-2.4.20/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -mips2 -Wa,--trap -DMODULE -mlong-calls" MAKING_MODULES=1 modules
make[1]: Entering directory `/opt/src/linux-2.4.20/drivers/usb/serial'
gcc -D__KERNEL__ -I/opt/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I /opt/src/linux-2.4.20/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -mips2 -Wa,--trap -DMODULE -mlong-calls -nostdinc -iwithprefix include -DKBUILD_BASENAME=usbserial -DEXPORT_SYMTAB -c usbserial.c
In file included from /opt/src/linux-2.4.20/include/linux/interrupt.h:46,
from /opt/src/linux-2.4.20/include/linux/usb.h:139,
from usbserial.c:300:
/opt/src/linux-2.4.20/include/asm/softirq.h: In function `cpu_bh_disable':
/opt/src/linux-2.4.20/include/asm/softirq.h:18: warning: use of compound expressions as lvalues is deprecated
/opt/src/linux-2.4.20/include/asm/softirq.h: In function `__cpu_bh_enable':
/opt/src/linux-2.4.20/include/asm/softirq.h:25: warning: use of compound expressions as lvalues is deprecated
gcc -D__KERNEL__ -I/opt/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I /opt/src/linux-2.4.20/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -mips2 -Wa,--trap -DMODULE -mlong-calls -nostdinc -iwithprefix include -DKBUILD_BASENAME=pl2303 -c -o pl2303.o pl2303.c
In file included from /opt/src/linux-2.4.20/include/linux/interrupt.h:46,
from /opt/src/linux-2.4.20/include/linux/usb.h:139,
from pl2303.c:45:
/opt/src/linux-2.4.20/include/asm/softirq.h: In function `cpu_bh_disable':
/opt/src/linux-2.4.20/include/asm/softirq.h:18: warning: use of compound expressions as lvalues is deprecated
/opt/src/linux-2.4.20/include/asm/softirq.h: In function `__cpu_bh_enable':
/opt/src/linux-2.4.20/include/asm/softirq.h:25: warning: use of compound expressions as lvalues is deprecated
make[1]: Leaving directory `/opt/src/linux-2.4.20/drivers/usb/serial'
------------------------------------------------

Any ideas as to what I'm doing wrong? Or could someone apply the patch and compile the module for me/us ?

Thank you,
Razvan

--
Razvan Dragomirescu
Chief Technology Officer
Cayenne Graphics SRL

drazvan
06-12-2006, 19:45
Ok, how do I set up a bounty? Looks like nobody wants to do this for free, so I'm willing to pay someone to compile a working module for me. The module would need to work on Oleg's latest firmware and contain the patches described above. If you can do it, name your price and preferred payment method.

Razvan

Oleg
06-12-2006, 19:57
Do you need this for original wl500g or deluxe or perhaps premium box?

drazvan
06-12-2006, 20:42
Preferably for the Premium although my Premium has just died so I'm left with a Deluxe to test on. Does it make a difference?

Oleg
07-12-2006, 08:16
http://oleg.wl500g.info/bin/usbserial.o

drazvan
07-12-2006, 11:23
Thanks Oleg but it doesn't appear to work. It doesn't seem to recognize the maxSize parameter (that is supposed to be added by the Junxion patch)

[admin@Asus root]$ insmod /tmp/local/root/usbserial.o vendor=0x12d1 product=0x1003 maxSize=2048
insmod: invalid parameter maxSize


If I try to simply insert it without that parameter, I get a Segmentation Fault and this in the dmesg:

-----------------------------------------------
usbserial.c: USB Serial support registered for Generic
Unable to handle kernel paging request at virtual address 00000004, epc == c008716c, ra == c00f788c
Oops in fault.c::do_page_fault, line 192:
$0 : 00000000 1000fc00 00000000 00001003 000012d1 00000000 c00f96a4 00000003
$8 : 81a63800 00000000 00000008 c00f5060 c00f94ab 2abb24a8 00000000 c00f93e0
$16: c00f9554 c008705c c00f95d0 00000000 c00f0c18 81a63800 00000000 c00f9544
$24: 00000018 2ac14e20 818b0000 818b1cf8 00000000 c00f788c
Hi : 00000000
Lo : 00000480
epc : c008716c Not tainted
Status: 1000fc03
Cause : 80000008
Process insmod (pid: 271, stackpage=818b0000)
Stack: 00008000 818b1d30 81a150dc 819e7380 802f37a0 80190bec 802f37a0
00000001 10031000 819e7380 00249603 8103c244 80190aec 80022514 2ac5ff80
011f968b 81045f30 80190bec 81a150c4 00000001 00000000 80000000 00000001
815de5b4 815df000 815df000 1d283a50 00000000 801e0f28 00000000 00000000
00000000 00000000 00000000 c00f9598 c00f95b8 81a1caa0 00000001 c00f0c18
00000001 ...
Call Trace: [<80190bec>] [<80190aec>] [<80022514>] [<80190bec>] [<c00f9598>]
[<c00f95b8>] [<c00f0c18>] [<c00986a0>] [<c008750c>] [<c008721c>] [<c0086f14>]
[<c0086f98>] [<c008721c>] [<c0086f14>] [<c0086f14>] [<c0086fd4>] [<c0086f98>]
[<800111cc>] [<c00986a8>] [<c0086f14>] [<c00986a8>] [<c0086f14>] [<c00986a8>]
[<c00861a8>] [<c00f95d8>] [<c00f95d8>] [<c00f8860>] [<c00f9370>] [<c00f89b0>]
[<c00f8750>] [<c00f8708>] [<80030500>] [<c00597d8>] [<8001259c>] [<800163f4>]
[<c00f5060>] [<800085a4>]

Code: 5462ffce 24c60014 30e20040 <50400006> 8d230004 90c3000c 910200e6 5462ffc7 24c60014
--------------------------------------------------------------

Razvan

ppeters
07-12-2006, 11:24
I have a Asus WL-500g Premium and are also having problems with the slow usb. I can't seem to get my HSDPA modem to go faster then 30KB/s.

I tried the usbserial.o driver that was posted here, but i got the same problem as the topic starter. I also can't give any maxSize option to the module.

I am using oleg WL500gp-1.9.2.7-7f. Does anyone have a usbserial.o for me
with the correct (maxSize) patch.

Thanks!

drazvan
09-12-2006, 10:07
So, any takers for the bounty? I'm still interested in getting that module patched by someone who knows how to do it and is interested in getting paid for it too.

Thanks,
Razvan

danielb
09-12-2006, 21:13
Ok. I take it. Here is the patched module. Here seems to work ok (no segmentation fault). Using 1.9.2.7-7f and wl-500gd. I couldn't test if it really work because I haven't got any device to do it.

drazvan
09-12-2006, 21:29
Thank you Daniel but unfortunately it does the exact same thing as Oleg's try:

----------------
usb.c: registered new driver serial
usbserial.c: USB Serial support registered for Generic
Unable to handle kernel paging request at virtual address 00000004, epc == c008716c, ra == c00a588c
Oops in fault.c::do_page_fault, line 192:
$0 : 00000000 1000fc00 00000000 00001003 000012d1 00000000 c00a7684 00000003
$8 : 819ce800 00000000 00000008 00000000 00000000 2abb24a8 00000000 00000000
$16: c00a7538 c008705c c00a75b8 00000000 c00acec0 819ce800 00000000 c00a7528
$24: 00000018 2ac14e20 81916000 81917cf8 00000000 c00a588c
Hi : 00000000
Lo : 00000500
epc : c008716c Not tainted
Status: 1000fc03
Cause : 80000008
Process insmod (pid: 147, stackpage=81916000)
Stack: 802f3620 1001f000 8000a8dc 80030198 1002f000 2aac0000 802f3620
00000001 1002f000 81ca1200 81917e18 00000001 802f363c 80022514 81917d38
0051d6ac 81e14aa0 80183ac8 819100bc 819374a0 81aafea0 81917d58 81da5800
80183b50 8000a8dc 00000000 801e1910 80055e34 801e0f28 00000000 00000000
00000000 00000000 00000000 c00a7580 c00a75a0 819e85a0 00000001 c00acec0
00000001 ...
Call Trace: [<8000a8dc>] [<80030198>] [<80022514>] [<80183ac8>] [<80183b50>]
[<8000a8dc>] [<80055e34>] [<c00a7580>] [<c00a75a0>] [<c00acec0>] [<c00986a0>]
[<c008750c>] [<c008721c>] [<c0086f14>] [<c0086f98>] [<c008721c>] [<c0086f14>]
[<c0086f14>] [<c0086fd4>] [<c0086f98>] [<800111cc>] [<c00986a8>] [<c0086f14>]
[<c00986a8>] [<c0086f14>] [<c00986a8>] [<c00861a8>] [<c00a75c0>] [<c00a75c0>]
[<c00a6874>] [<c00a7380>] [<c00a69c0>] [<c00a6764>] [<c00a671c>] [<80030500>]
[<8001259c>] [<8002be40>] [<80030198>] [<c00a3060>] [<800085a4>]

Code: 5462ffce 24c60014 30e20040 <50400006> 8d230004 90c3000c 910200e6 5462ffc7 24c60014
-------------------------------------------------------

You're right, if the device is not plugged in it doesn't mind (doesn't segfault) but when the message above pops up when the device is plugged in ... could this somehow be a hardware issue with the dongle itself? I doubt that it's my router that's doing this, others seem to be reporting the same thing. What I don't get is how come the original driver works... could the patch break things up so badly? It looked like a really simple patch to me...

Razvan

drazvan
09-12-2006, 21:34
BTW, I think you could try it with any USB modem dongle, just do "insmod usbserial vendor=<your vendor> device=<your device> maxSize=2048". If it doesn't segfault, that's good.

R.

danielb
09-12-2006, 21:43
Sorry, I haven't got any USB modem dongle at hand so I couldn't test it myself.
So, could you try using as maxSize the value of 64 instead of 2048?
And if it works, could you try again with 128, 256, 512 and 1024?

drazvan
09-12-2006, 21:56
Same thing unfortunately .... I've tried 1024, 512, 256, 128, 64 and even 0. I've also tried to leave out the parameter altogether (no maxSize at the end). The same oops .... I'm really lost :(.

Razvan

danielb
09-12-2006, 22:11
That's really strange. With 64 as the maxSize value, it should work exactly like the the unpatched usbserial.o ......because the unpatched usbserial.o works, doesn't it? Have you tried it?.
Because if it also fails, the problem is not in the patch but in other place.
Could you confirm me that the unpatched (and slow) usbserial.o works?

drazvan
10-12-2006, 00:13
Yes, I can confirm that the unpatched usbserial.o (the one that comes with the firmware) works just fine (slow but fine). Which leads me to think that there's a problem with the way we are compiling it. Even the version that Oleg sent (that didn't seem to have the patch applied) exhibited the same problem. What could cause this? How is that module compiled (differently from how you compiled it)?

Razvan

P.S. Would it help you if I sent you the binary of the module that I currently use? You can probably get it anyway from the firmware but maybe it could help, I don't know.

danielb
10-12-2006, 10:20
Yes, it is really weird. But knowing that the "original" one works, helps a lot.
Could you test this one? It is based on the original one and has no "maxSize" option, but the buffer size is modified to be bigger, so in theory it should work as fast as the patched usbserial.o

jimmy_cr
11-12-2006, 12:26
is this usable for "WL-500g" also? Any "USB1" speed improvement?

danielb
11-12-2006, 15:01
is this usable for "WL-500g" also? Any "USB1" speed improvement?
Yes it should work with a wl-500g as well as in a deluxe or a premium. As the USB 1.1 could get up to 12Mb/s, the limit in this case will be more the CPU than the USB port.
Just remember this module is only for usb modems or similar, not for USB storage devices!

drazvan
11-12-2006, 20:06
Hello again,

Sorry for the delay in testing this, had a busy day at work. Unfortunately the latest module does the exact same thing when inserted:

--------
usbserial.c: USB Serial support registered for Generic
Unable to handle kernel paging request at virtual address 00000004, epc == c0087
16c, ra == c00a588c
Oops in fault.c::do_page_fault, line 192:
$0 : 00000000 1000fc00 00000000 00001003 000012d1 00000000 c00a76a4 00000003
$8 : 819bc800 00000000 00000008 c00a3060 c00a748d 2abb24a8 00000000 c00a73e0
$16: c00a7554 c008705c c00a75d0 00000000 c00acec0 819bc800 00000000 c00a7544
$24: 00000018 2ac14e20 818e2000 818e3cf8 00000000 c00a588c
Hi : 00000000
Lo : 00000d00
epc : c008716c Not tainted
Status: 1000fc03
Cause : 80000008
Process insmod (pid: 152, stackpage=818e2000)
Stack: 802f36a0 1001f000 81dcadb8 8001acb8 1002f000 80190bec 802f36a0
00000001 1002f000 819467a0 818e3e18 00000001 802f36bc 80022514 802197e0
801d3040 000003c3 801dfce0 818dd0bc 8001a5d4 818e2000 819467a0 802f36a0
1002f000 8000a8dc 8001670c 000003c3 801dfce0 801e0f28 00000000 00000000
00000000 00000000 00000000 c00a7598 c00a75b8 81a1ec20 00000001 c00acec0
00000001 ...
Call Trace: [<8001acb8>] [<80190bec>] [<80022514>] [<8001a5d4>] [<8000a8dc>]
[<8001670c>] [<c00a7598>] [<c00a75b8>] [<c00acec0>] [<c00986a0>] [<c008750c>]
[<c008721c>] [<c0086f14>] [<c0086f98>] [<c008721c>] [<c0086f14>] [<c0086f14>]
[<c0086fd4>] [<c0086f98>] [<800111cc>] [<c00986a8>] [<c0086f14>] [<c00986a8>]
[<c0086f14>] [<c00986a8>] [<c00861a8>] [<c00a75d8>] [<c00a75d8>] [<c00a6860>]
[<c00a7370>] [<c00a69b0>] [<c00a6750>] [<c00a6708>] [<80030500>] [<8001259c>]
[<8002be40>] [<80030198>] [<c00a3060>] [<800085a4>]

Code: 5462ffce 24c60014 30e20040 <50400006> 8d230004 90c3000c 910200e6 5462
ffc7 24c60014
--------------------

Once again, this happens at the time the modem is inserted, not when the module is insmod-ed. Something is definitely wrong and I'm not sure what that is.

When I use the builtin module, I get this:

usb.c: registered new driver serial
usbserial.c: USB Serial support registered for Generic
usbserial.c: Generic converter detected
usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
usbserial.c: Generic converter detected
usbserial.c: Generic converter now attached to ttyUSB1 (or usb/tts/1 for devfs)
usbserial.c: Generic converter detected
usbserial.c: Generic converter now attached to ttyUSB2 (or usb/tts/2 for devfs)
usbserial.c: USB Serial Driver core v1.4
usbserial.c: USB Serial support registered for PL-2303
pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.11

I'll try to put the machine on the open Internet so that you can take a direct look at it. Thanks for the effort, I really appreciate it.

Razvan

danielb
12-12-2006, 12:58
well, if this one also fails, that rules out the compiling problem, I think.
Time to think in other alternatives. And having access to the machine will be handy, thanks.

dimensionone
04-01-2007, 13:36
Hi,

is there any progress with compiling usbserial module for Hueawei E220? I have this modem and have the same problem with connection to Internet via Asus WL.500g

danielb
05-01-2007, 22:44
Hi,

is there any progress with compiling usbserial module for Hueawei E220? I have this modem and have the same problem with connection to Internet via Asus WL.500g

Sorry, no progress right now. Drazvan vanished since my last post and as I haven't got a suitable modem I couldn't test what is wrong and fix it.

PS: you could test the last module I attached to this thread. It is very unlikely it could work but, who knows, perhaps you are lucky and it works ok with your hardware.

dimensionone
11-01-2007, 09:30
Hi,

I will test it, but, please, can you give me a detail instruction how can I copy your module to the router.

And what firmware should I use for the testing?

Thanks.


Viliam

danielb
11-01-2007, 20:33
Use firmware 1.9.2.7-7f
To load this module, just copy it to a usb stick or harddisk.
By default, any usb storage device is mounted in /tmp/harddisk
so, if for example, you got the module in "module" folder, just write this in your asus shell prompt:
insmod /tmp/harddisk/module/usbserial.o
That's all.
Good luck!

dimensionone
12-01-2007, 20:47
Hi,

I loaded Oleg's firmware, downloaded module, logged to Asus router, did insmod.
After hitting enter, nothing happened. ( I don't know, if it is ok)

Than I connected modem to usb port of the router.

When I checked System log in Status and Log I saw only one line:

Jan 1 00:11:55 kernel: hub.c: new USB device 00:04.0-1, assigned address 4

Nothing more. If there is also other log, please, write me, how can I access it.

Additionally, I wanted to test connection, but I don't know, where to put login settings.

Can you write me, where I shall put such settings as APN and dial number and also as I will connect.


I previously downloaded firmware from this page: http://koppel.cz/cdmawifi/NewFW166.

They have created graphic interface to connect UMTS modem (unfortunately it is not working for Huawei modem).

I also tried to install usbserial.o module using this firmware, but insmod gave me a message, that usbserial module already exists.

I don't know, how can I overwrite a module with your one (once it is possible)

I'm sorry, I'm only a normal user and has no linux knowledge

dimensionone
12-01-2007, 20:52
Sorry, the firmware with working UMTS grafic interface can be downloaded from here http://koppel.cz/cdmawifi/download/163/. It supports ZADACOM modem connection, but Huawei. As I read on the forum, with ZADACOM, they can connect to internet with full speed. Their firmware is based on version 1.9.2.7-7f, so maybe it will be easier to test it with your usbserial module. Just let me know, how to load your module to Asus with their firmware.

drazvan
10-03-2007, 12:45
Sorry guys, I didn't disappear altogether, we just switched platforms, we're now using an x86-compatible embedded system, it was way easier to simply compile or get precompiled Linux x86 drivers. This whole Asus/MIPS compilation and testing process was simply taking too long and we needed to get our product out faster. I no longer have the Asus router so I can't really help with the tests.

Cheers,
Razvan

Denoud
08-11-2007, 10:33
I felt that I had to reply, because I couldn't find a solution anywhere on the net and there must be someone that still have this problem.

This is how I got the Huawei E220 to work at full speed (3.6 / 7.2 Mbit/s). No patches are needed, just configuration.


I flashed the wl-500gP with http://koppel.cz/cdmawifi/download/166/

* In Connection Mode (USB Connection) I choose Dial-Up and entered the vendor=0x12d1 product=0x1003 and to dial *99#.

It now works but max out at 20kb/s.


* Now change the connection mode to User Defined.

* Telnet to the wl-500gP.

* Copy the files from /tmp/ppp/dialup to /usr/local/dial.

* Alter the file /usr/local/dial/update, replace "/tmp/ppp/dialup/" with "/usr/local/dial/"

* Alter the file /usr/local/dial/dial at row 6 to
"insmod usbserial vendor=$(nvram get dialup_vid) product=$(nvram get dialup_pid) maxpacketsize=4096"
(I think this is the trick, the maxpacketsize)

* Alter the file /usr/local/dial/dialup. Replace "115200" with "921600". (dunno if this is important)

That's it.

To save it all.

flashfs save
flashfs commit
flashfs enable

and

reboot

Now in the system log:
Jan 1 00:00:44 kernel: usbserial.c: Generic converter detected
Jan 1 00:00:44 kernel: usbserial.c: Buffer size for bulk_in is 4096 modem reports 64
Jan 1 00:00:44 kernel: usbserial.c: Buffer size for bulk_out is 4096 modem reports 64
Jan 1 00:00:44 kernel: usbserial.c: Generic converter now attached to /dev/usb/tts/0


I now max out at 650kb/s. Much more pleasant :)


/David.

neo_tester
10-11-2007, 21:22
Hi, first of all thank you for your tutorial.

Could anyone please explain (even in more detail) how to change mode to "user defined" and all commands that must be given to increase the speed of the connection.

I done the first steps of the previous procedure but i stoped here:
"(...) * Now change the connection mode to User Defined (...)"

Sorry about the question but i dont understand almost anything about this subject.
The telnet commands could be done using DOS prompt line? Could you plz tell me what must typed exactly?

Thanks in advance.

xipbox
11-11-2007, 03:23
Hi, I have test the settings of user Denoud and it is working very fine.

i let you de dial files configured, it's only load it on settings of connection.

Tanks

neo_tester
11-11-2007, 11:38
Thank you for the configuration files.

The problem is that i'm really a noob, dont know anything abou linux, programming etc... and still want to use Huawei E220 with Asus WL500gp.

I'm a windows xp user that have putty but dont know anything about the commands that must be given to place the files in router or do the configuration, i just know how to login via telnet :P

Anyone could give me the exact sequence of the commands that i must execute (please have in mind that i havent done anything else after install the firmware). If putty is apprpriate for this? This should be very basic for you but for me it's a dead end.

Thanks.

neo_tester
11-11-2007, 20:34
Used System Setup > Flashfs Management and upload the *.tar file gently given by xipbox on Asus WL500GP but problem persists.

On the log:
usbserial.c: Generic converter detected
Jan 1 01:00:07 kernel: usbserial.c: Buffer size for bulk_in is 64 modem reports 64
Jan 1 01:00:07 kernel: usbserial.c: Buffer size for bulk_out is 64 modem reports 64
Jan 1 01:00:07 kernel: usbserial.c: Generic converter now attached to /dev/usb/tts/1

Speed is still limited to 250Kbps :confused:

Please advise.

Cheers.

neo_tester
11-11-2007, 21:30
Finally understand how to import files correctly...

I found a new problem:
On my dial up connection username and password cannot be null
Coreect data:
Username: vodafone
Password: vodafone

Can anyone create me a new *tar file with these data, please.

Thanks.

gadget
18-11-2007, 20:30
I have the same problem.

I upload the file to the asus wl500gp, but i break on the steeps.

Podem explicar em tuga se quizerem ajudava mesmo LOLOL

gadget
18-11-2007, 20:54
Done!

I understude... my english, dahhh.

Feito em bom Português!!

gadget
18-11-2007, 23:13
I have another problem ...

When i reboot the router de configuration desapears.

I need to put de config files again.

ricabrantes
28-11-2007, 15:18
Onde ponho o pin do cartão?

uatara
16-12-2007, 22:10
I have made everything Denoud said. But the speed is still limited - 250 kBps.
Could anyone help please!

klokancz
18-12-2007, 15:06
Running solution:



Download latest firmware from http://koppel.cz/cdmawifi/download/
(http://koppel.cz/cdmawifi/download/). Flash it by web admin interface "Firmware upgrade".

After restart of Asus choose through the web interface "USB Connection" -> * "User defined".

Upload attached file dial.huawei.tar.gz on "USB Connection" -> "User Dial-Up Files".

Setup your provider username/password/apn/number in "USB Connection" -> "User Dial-Up Config". Get that info from your provider or maybe down on this page (http://linux.frankenberger.at/Huawei_E220.html)

uatara
18-12-2007, 16:24
klokancz , GREAT THANKS TO YOU !! The problem is solved!

ant9
20-12-2007, 08:15
Is it really necessary to flash this new firmware, or is there a way to stick with olegs and use the E220 at full speed?

Thinking of the time put in my router configuration gives me a headache ;)

Thanks!

geezerpl
21-12-2007, 23:09
I have made everything klokancz said. But the speed (data transfer) is still limited to 384 kbps. If connecting the E220 to PC I get 1100-1200 kpbs.
I installed the latest firmware 1,67 on my ASUS.

Could anyone help please!? :(

Which firmware should reside inside Huawei ??
I've got the 11.117.08.00.00....

geezerpl
21-12-2007, 23:10
Finally understand how to import files correctly...



Could you pls share it with us then ?

uatara
26-12-2007, 10:04
Could you pls share it with us then ?
this file is attached to klokancz's last post.
Did you upload it to your router ?

klokancz
26-12-2007, 10:14
I have made everything klokancz said. But the speed (data transfer) is still limited to 384 kbps. If connecting the E220 to PC I get 1100-1200 kpbs.
I installed the latest firmware 1,67 on my ASUS.

Could anyone help please!? :(

Which firmware should reside inside Huawei ??
I've got the 11.117.08.00.00....

I don't think that firmware of Huawei has anything to do with your speed.
Maybe you use wrong APN? Some providers has more of them, like the Austrian One.at... Call to your provider and check that.

ant9
08-01-2008, 20:53
I've tried this my own and it worked like a charm :D
Thank you very much.

But 2 things are bugging me:

Is the connection terminated automatically if the connection is not used, or established if needed?
The speed tested with www.giganews.com speedtester showed about 360-500 kbs. seems a bit low for the correct configured maximum.


Thank you in advance!
Ant9


Running solution:



Download latest firmware from http://koppel.cz/cdmawifi/download/
(http://koppel.cz/cdmawifi/download/). Flash it by web admin interface "Firmware upgrade".

After restart of Asus choose through the web interface "USB Connection" -> * "User defined".

Upload attached file dial.huawei.tar.gz on "USB Connection" -> "User Dial-Up Files".

Setup your provider username/password/apn/number in "USB Connection" -> "User Dial-Up Config". Get that info from your provider or maybe down on this page (http://linux.frankenberger.at/Huawei_E220.html)

pion71
21-01-2008, 07:36
I've tried the solution posted by klokancz and it works with a Huawei E220.
But i've tried with a Huawei E270 and not work. Any solution for this?

Thank you in advance

engy
22-01-2008, 11:07
Perhaps different usb vid/pid.

pion71
23-01-2008, 09:26
Perhaps different usb vid/pid.

You can explain this?
I can modify usb vid/pid?

engy
26-01-2008, 09:13
You can explain this?
I can modify usb vid/pid?

Look in /proc/bus/usb/devices if the modem is catched by serial driver. I think E270 has two serial lines, so try the second one (/dev/usb/tts/1)

You can also try
serialcomm /dev/usb/tts/0 ATI
serialcomm /dev/usb/tts/1 ATI

pion71
28-01-2008, 11:42
You can help me to do this? I'm a newbie and i don't know how try the second one (/dev/usb/tts/1).

I must to modify the dial.huawei.tar file or i must to connect via telnet to WL500?

Please help me.

Thank you very much

engy
28-01-2008, 15:48
Yes you can modify dial.huawei.tar od directly /usr/local/dial/gprs file and then store to flashfs

pion71
28-01-2008, 18:01
Try it with same result:

Connect script failed.

Any solution?

engy
06-02-2008, 09:24
We have new firmware version 1.68 based on Oleg's 1.9.2.7-8 with this new features :

* USB stack from kernel 2.4.35.4
* Native support for Huawei E220 modem
* USB vid/pid/packetsize can be set for user USB devices
* User AT command for dialup connection
* Support for UMTS interface of AnyDATA ADU-630WH modem (set 3 in USB device id)
* Changing of WEB port for internal network - default 80
* Update DDNS once a day

http://koppel.cz/cdmawifi/english/

armarra
31-12-2008, 00:29
I felt that I had to reply, because I couldn't find a solution anywhere on the net and there must be someone that still have this problem.

This is how I got the Huawei E220 to work at full speed (3.6 / 7.2 Mbit/s). No patches are needed, just configuration.


I flashed the wl-500gP with http://koppel.cz/cdmawifi/download/166/

* In Connection Mode (USB Connection) I choose Dial-Up and entered the vendor=0x12d1 product=0x1003 and to dial *99#.

It now works but max out at 20kb/s.


* Now change the connection mode to User Defined.

* Telnet to the wl-500gP.

* Copy the files from /tmp/ppp/dialup to /usr/local/dial.

* Alter the file /usr/local/dial/update, replace "/tmp/ppp/dialup/" with "/usr/local/dial/"

* Alter the file /usr/local/dial/dial at row 6 to
"insmod usbserial vendor=$(nvram get dialup_vid) product=$(nvram get dialup_pid) maxpacketsize=4096"
(I think this is the trick, the maxpacketsize)

* Alter the file /usr/local/dial/dialup. Replace "115200" with "921600". (dunno if this is important)

That's it.

To save it all.

flashfs save
flashfs commit
flashfs enable

and

reboot

Now in the system log:
Jan 1 00:00:44 kernel: usbserial.c: Generic converter detected
Jan 1 00:00:44 kernel: usbserial.c: Buffer size for bulk_in is 4096 modem reports 64
Jan 1 00:00:44 kernel: usbserial.c: Buffer size for bulk_out is 4096 modem reports 64
Jan 1 00:00:44 kernel: usbserial.c: Generic converter now attached to /dev/usb/tts/0


I now max out at 650kb/s. Much more pleasant :)


/David.


Hi David I've got an E220 Huawei running Ubuntu.

can you indicate which download works on the page you reference.. there's about half a dozen. also by the word 'flash' do u mean simply 'install'. I've tried setting up the E220 using wvdial to no avail. Cant seem to get all the settings right. any input would really help..

thanks and happy new year.

Rod

tdani
09-09-2009, 21:59
i have an asus wl500gp v2 with a huawei e180. i can't configure to connect to internet . i use koppel. please help me....
thanks