Chinaunix首页 | 论坛 | 博客
  • 博客访问: 918256
  • 博文数量: 132
  • 博客积分: 9976
  • 博客等级: 中将
  • 技术积分: 1781
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-30 20:40
文章分类

全部博文(132)

文章存档

2013年(1)

2011年(1)

2010年(15)

2009年(77)

2008年(36)

2007年(2)

我的朋友

分类: 嵌入式

2010-03-12 13:17:52

wireless module driver(huawei)

============================================================
from:http://blog.josefsson.org/2007/07/22/linksys-wrt54g3g-huawei-e600-openwrt-kamikaze-internet-at-summer-house/

Linksys WRT54G3G + Huawei E600 + OpenWRT Kamikaze = Internet at summer house

Spending vacation at the summer house without Internet connectivity? Unthinkable.

Linksys 
WRT54G3GHuawei E600

The first few days, I connected the laptop to my cell phone using Bluetooth, and then to the Internet using 3G/UMTS.

However, we have more than one laptop here, and the range of bluetooth is limited. I ended up setting up a wireless access point with a PCMCIA slot for a 3G/UMTS card. It has worked flawlessly for several days.

The writeup on how to do this is long, so I put it at a separate page:

Update: I have written a similar howto for OpenWRT 8.09 and Huawei E220, see

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

72 Responses to “Linksys WRT54G3G + Huawei E600 + OpenWRT Kamikaze = Internet at summer house”

  1. Matthew says:

    Hi,

    First of all - I must say thanks for the howto - got me going on ‘taking control’ of my WRT54G3G!

    What I’m interested to know is if anyone has succesfully increased the RAM in the unit?

    I’ve come across a couple of references to people achieving this but as yet have not come across any clear instructions.

    Another question;
    How easy is it to have the WAN port connected to ADSL as the primary internet connection, with the 3G as backup in the case of ADSL problems?
    (Here in South Africa, we constantly have problems with stolen copper and as such often have sites down)!

    Any help would be appreciated.

    Thanks,

    Matthew

  2. says:

    look here brad

    you can give the script?

  3. Karel Janssens says:

    The Sierra Wireless 875U USB on a WL500Gp sage continues…
    Finally I made a connection on a Ubuntu 7.10
    Tried chat, kppp, nothing seemed to be able to establish a connection
    but after generating hundreds of wvdial.conf files (wvdial-generator.php :-) )
    I made it. It’s working!
    Now how can I get this wvdial on my OpenWRT box?
    Anyone?

  4. says:

    Hi
    Refering to post
    peter Says:

    November 21st, 2007 at 1:42

    The usbserial.o file is no longer available at the specified location
    Could someone please assist me in getting a copy of it for kamakaze 7.09 on a Linksys openWRT3g3

    I would live to get the speeds where they need to be

    Thanks in advance

  5. says:

    try here assasin:

    if not work ask simon for webspace ???? @simon ??
    or give email.
    greets peter

  6. simon says:

    Thanks Peter!

    I placed a copy at:

    SHA-1 d4346bb4356a77cb9841abc9642677548125fa88

    Naturally, keep in mind that in general you shouldn’t download untrusted binaries from the net and run them.

    Finally, I have no idea whether this works or not, since I haven’t run across this problem.

    /Simon

  7. [...] you are interested in using OpenWRT with a 3G connection, you may find my summer house internet writeup more [...]

  8. says:

    Hi

    I would Just like to thank you all (Peter, Simon and especially ) for all the write ups and how to’s.
    I have learnt a lot, and built some interesting things.

    Thank you again!
    Cheers
    Assasin

  9. Alex says:

    Hi,

    My WRT54G3G works fine with Kamikaze 0.9 and x-wrt. My data card is a Option Ge0301 with HSUPA. I followed the writeup of Simon. Then I had to change the usbserial.o to the new one to patch the small data rate. Now I get my fullspeed I got with the original Linksys firm.

    Now one question. I miss a “dial on demand” function. I use a vodafone flat and I wish an auto connect. Has someone a solution?

    Thanks a lot,
    alex

  10. ferdie says:

    Just saw this site. I am interested to try this out. Just a few questions guys, so I can get my hands dirty on this later.

    Which of the WRT54G3G I have to buy?
    I saw three flavors of this in Linksys site.
    WRT54G3G-AT
    WRT54G3G-ST
    WRT54G3G-VN

    Can use this as hotspot once installed with OpenWRT?
    Are there any list of supported PCMCIA cards?
    I’m from Asia, any online store I can buy this router?

    That’s it for now =)

  11. simon says:

    Hi ferdie. I think all three would work, but I don’t know for sure. Actually, what IS the difference between those devices? The data sheets on the linksys looks just the same to me.

    It should work fine as a hotspot, but you may need additional software if you want to configure it for authentication. Such as Chili Hotspot.

    Linksys has a list of supported devices, but it is rather short, and OpenWRT should support any PCMCIA 3G card that emulates serial ports. My huawei E600 isn’t supported by linksys, but it works fine with OpenWRT.

    However, keep in mind that a cheaper choice may be to buy a normal wireless router with a USB port. I have several ASUS WL-500gP’s which should handle this fine. You can then buy a separate USB-based 3G modem. They tend to be cheaper then the PCMCIA 3G modems too.

    Good luck,
    Simon

  12. says:

    Hi Simon,

    I really hope you can help me
    I am having a problem with a data card, I have been every where and can not seem to find the problem,
    I had the router working great with an Option data card on vendor=0xaf0 product=0×6701
    I have got a new E600 card, with the same setting as listed by you.
    vendor=0×12d1 product=0×1001

    I built and image with the old card settings, that I loaded onto a new router, and installed the new card in that one

    But now i get the error as listed in DMESG
    usb-ohci.c: usb-02:00.0, PCI device 1131:1561
    usb.c: new USB bus registered, assigned bus number 2
    hub.c: USB hub found
    hub.c: 2 ports detected
    hub.c: new USB device 02:00.0-1, assigned address 2
    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)
    hub.c: new USB device 02:00.0-2, assigned address 3
    usb.c: USB device not accepting new address=3 (error=-145)
    hub.c: new USB device 02:00.0-2, assigned address 4
    usb.c: USB device not accepting new address=4 (error=-145)

    How do I get around this as the card no longer initilases?
    I am totaly stumped,

    This is from a working one:
    root@OpenWrt:/proc# cat modules
    usbserial 23884 1
    wlcompat 14944 0 (unused)
    usb-ohci 19252 0 (unused)
    ds 7420 0 (unused)
    yenta_socket 10668 1
    pcmcia_core 44064 0 [ds yenta_socket]
    ip_conntrack_tftp 1712 0 (unused)
    ip_nat_irc 2336 0 (unused)
    ip_conntrack_irc 3128 1
    ip_nat_ftp 2960 0 (unused)
    ip_conntrack_ftp 4272 1
    ppp_async 7884 2
    ppp_generic 22300 6 [ppp_async]
    slhc 6064 0 [ppp_generic]
    wl 630776 0 (unused)
    usbcore 71296 1 [usbserial usb-ohci]
    switch-robo 4540 0 (unused)
    switch-core 4864 0 [switch-robo]
    diag 25520 0 (unused)

    And this from a not working one?
    usbserial 23516 0
    wlcompat 9504 0 (unused)
    usb-ohci 19252 0 (unused)
    ppp_synctty 6332 0 (unused)
    ds 7420 0 (unused)
    yenta_socket 10668 1
    pcmcia_core 44064 0 [ds yenta_socket]
    ip_conntrack_tftp 1712 0 (unused)
    ip_nat_irc 2336 0 (unused)
    ip_conntrack_irc 3128 1
    ip_nat_ftp 2960 0 (unused)
    ip_conntrack_ftp 4272 1
    ppp_async 8044 0 (unused)
    ppp_generic 22380 0 [ppp_synctty ppp_async]
    slhc 6064 0 [ppp_generic]
    wl 666224 0 (unused)
    usbcore 71296 1 [usbserial usb-ohci]
    switch-robo 5052 0 (unused)
    switch-core 4928 0 [switch-robo]
    diag 28032 0 (unused)

    Please help??
    Thanks
    Assasin

  13. says:

    Assasin, it looks as if there is some USB problem. Either your card has a broken USB chip, or there is a software error. Let’s assume the latter.. :)

    I’ve run into USB problems sometimes that had to do with OHCI vs EHCI vs UHCI. Could you try unload the usb-ohci driver and load ‘uhci’ instead? or some ehci* driver. Look in /lib/modules/ for the available drivers.

    Good luck…

    /Simon

  14. Keith says:

    For those needing to authenticate themselves to an APN / private APN:
    add the following lines (obviously with your own username and password) to your /etc/ppp/options file:

    user myusername
    password mypassword

    and possibly add these too:
    defaultroute
    usepeerdns

    to watch the log, uncomment the “debug” line and use the command
    logread -f &
    to do the equivalent of a tail -f /var/log/messages in linux. (Or just use logread on its own to see the most recent log messages)

  15. says:

    Another way you can improve performance is by adjusting..

    the ammount of address your router can handle.
    which explains here.

    You can also set your dns settings to a more better server…

    which a list can be found here.

  16. Oussy says:

    Thanks for the easy instructions, could you explain how to install the Telstra MF332 Card, is there anything special about installing different cards.

  17. says:

    Hi Oussy. As long as the card simulates serial ports over USB, there is no difference between different card. And as far as I know, all 3G modems for PCs out there simulates serial ports over USB. So any card should work with OpenWRT.

  18. John says:

    To use the WRT54G3G as a hotspot with billing, you can use CoovaAP which is based on OpenWRT with a company .

  19. vanity says:

    Hi Simon, unlike all of you guys, i’m quite oblivious to all this tech/programming stuff so i hope you will be patient while i use layman terms to describe my situation. thanks in advance and here goes!:

    i was given a Linksys WRT54G3G v1.1 router and an Option GX0201 datacard by a friend. before he handed this gadgets to me, we were able to surf the Net wireless-ly on a Singapore’s mobile broadband provider on the same router and datacard, however now i’m in Australia and i tried to replace sim cards in the data card and tried to surf the internet but to no avail. the pink/purple led on the data card keeps blinking.

    with this if i were to follow your summer house howto super closely, can i achieve wireless internet connectivity? otherwise, what can you recommend?

  20. says:

    Hi Vanity. You could follow my howto, but if you aren’t at all familiar with linux I think it will be challenging. However it sounds as if your problem is a simple one such as the wrong pin, the wrong APN setting, or something similar. So double check all the settings for the 3G card in your router. If you change SIM card you will need to configure the new pin code and the new APN address. You get the APN address from your SIM card provider if you don’t know it (it is typically something like ‘internet.foocorp.com’).

    Also, try using the PCMCIA card with the new SIM card in a normal laptop first.

    Good luck,
    Simon

  21. says:

    This is another theme and similar uitility.

    PLease help-me cheeck this:

  22. says:

    I successfully followed this on my wrt54g3g but i now want to put it on my wrt54g3gv2 (has 3 usb ports in addition to pcmcia).
    It seems reluctant to accept any firmware i throw at it (with modified headers to 3G2V).

    Firmware i’ve tried:

    * Openwrt kamikaze brcm2.4 8.09
    * Openwrt kamikaze brcm47xx 8.09
    * Openwrt whiterussian brcm2.4
    * Openwrt whiterussian brcm47xx
    * DD-WRT v24
    * DD-WRT v24sp1

    The router will complete the update status with all of these firmware’s and then during reboot it starts flashing all it’s lights and will copy a backup image from flash2 to flash1 (the unit has an 8mb parallel flash with 32mb ram).

    Does dropbear require any busybox configuration or any configuration to start on boot or once compiled and installed will it start automatically?

    Upon looking through some of the web interface files, I noticed that the web interface folder is called cisco_wrt350n_m (maybe the _m means mobile?) so i thought it was maybe a variant of the wrt350n but branded as a wrt54g. Reading up on the wrt350n, apparantly you have to flash the unit with dd-wrt and then openwrt, which again didn’t help me.
    The unit definately has a broadcom board because of the dedicated broadcom folders in the gpl code.

    Setting the router up once i have the firmware on there isn’t a problem following this guide, it’s just getting the firmware on there in the first place!

    Help will be greatly appreciated!!!


============================================================
from:

Huawei e180 drivers for linux4one?
in:

Related text in page: «Huawei e180 drivers for linux4one? ... Is there a way to install the drivers in synaptic? I'm looking for a simple fix and if the solution is too complicated I think ...»

============================================================
from:

advertisement

Looking for a way to access the on your notebook without having to find a wireless hotspot?

Then check out the Huawei E6000 Datacard.

Card access to the Internet

It is a PCMCIA datacard that supports both 3G and GPRS connections through a SIM card for Internet access. As the card is larger than usual PCMCIA card size, it sticks out the slot by about 2.5cm, which a flip-up antenna at the end for improved signal reception.

There was one little problem with the datacard’s software. It can only be installed and run when the notebook’s display is set to 96-DPI. Use any other DPI setting and the will refuse to load. This problem will fixed in the next version of the software driver, according to the distributor.

Apart from the little glitch, the software worked pretty well. It lets you use your notebook to do all the things a phone can do, for example make, receive and manages call, send and receive SMS texts and .

All the functions are straightforward and easily done with the software. Contacts are easily imported and exported between the SIM card and the notebook. In fact, SMS message can also be imported from the SIM card as well.

Getting on the Internet is also straightforward. Once your phone provider’s network settings have been configured, Internet access is just a mouse click away.

Huawei_E600.jpg

Watch Your Bill

Performance for either 3G or GPRS connection can also be configured via the software. Very handy is the running statistics provided on the amount of data that has been sent and received during an Internet session.

With the ease of connection and the near-broadband speed of 3G, it is very easy to rack up large amounts of data traffic before you know it. Those on a pay-as-you-use data scheme will quickly feel the pain when the phone bill arrives.

SMS Limitation

There are a couple of areas where things can be improved. In the SMS function, what is missing is a character counter to let you know how many characters you are typing in that SMS.

The way you are able to make and receive calls need improvement as well. You can have voice only with a handfree earpiece, which plugs into the datacard. It would be nice yo be able to make use of the notebook’s microphone and speakers for speaker-phone function.


Comment

The Huawei E600 datacard is great for anytime, anywhere freedom for high-speed wireless Internet connections. Just watch out for the connection costs if you are not on an unlimited data scheme.


============================================================
from:

Hello everybody!

I have a ASUS WL-500G Premium router and I recently installed Kamikaze 7.09 on it. I have the following packages installed:

base-files-brcm47xx-2.6 10-9078 
bridge 1.0.6-1 
busybox 1.4.2-2 
deco 39-1 
dnsmasq 2.39-1 
dropbear 0.50-2 
fdisk 2.12r-2 
haserl 0.8.0-2 
hotplug2 0.9+r102-2 
iptables 1.3.7-1 
kernel 2.6.22-brcm47xx-1 
kmod-diag 2+2.6.22-brcm47xx-1 
kmod-fs-vfat 2.6.22-brcm47xx-1 
kmod-madwifi 2.6.22+r2568-20070710-brcm47xx-2 
kmod-nls-base 2.6.22-brcm47xx-1 
kmod-ppp 2.6.22-brcm47xx-1 
kmod-pppoe 2.6.22-brcm47xx-1 
kmod-scsi-core 2.6.22-brcm47xx-1 
kmod-switch 2.6.22-brcm47xx-1 
kmod-usb-acm 2.6.22-brcm47xx-1 
kmod-usb-core 2.6.22-brcm47xx-1 
kmod-usb-ohci 2.6.22-brcm47xx-1 
kmod-usb-serial 2.6.22-brcm47xx-1 
kmod-usb-serial-airprime 2.6.22-brcm47xx-1 
kmod-usb-storage 2.6.22-brcm47xx-1 
kmod-usb2 2.6.22-brcm47xx-1 
libgcc 4.1.2-10 
libncurses 5.6-1 
libusb 0.1.12-1 
mtd 5 
ppp 2.4.3-8 
ppp-mod-pppoe 2.4.3-8 
uclibc 0.9.28-10 
udevtrigger 106-1 
usbutils 0.72-1 
webif 0.3-8 
wireless-tools 29-1 

I'm trying to install a ZAPP 010 CDMA modem and connect to the internet using EVDO. The problem is that I don't see the modem with lsusb. On the other hand, if I put a USB memory stick I see it immediately.

Could you please help me with this matter?

Thank you!

-------------------------------------
CDMA or GSM modems should behave somewhat similar. You can find useful links if you google for openwrt and UMTS.
Please tell us what dmesg reports.

One useful link is


It mentions the following which may have some connection to your issue

--Snip

With Kamikaze 7.06, you may get an error in the kernel log since the Huawei USB ID is not recognized. Note that this has been fixed in both 7.07 and 7.09.

usb.c: USB device 2 (vend/prod 0x12d1/0x1001) is not claimed by any active driver.To fix this in 7.06 (although I suggest upgrading to 7.07 or 7.09 instead), you'll need to load the “usbserial† kernel module with the “vendor=0x12d1 product=0x1001† parameters. To make this be loaded automatically every time the box starts, modify “/etc/modules.d/60-usb-serial† into:

usbserial vendor=0x12d1 product=0x1001 # Huawei E600

---End snip

-------------------------------------
I've tried that solution and I still didn't see the CDMA modem.

Here is my dmesg:

root@OpenWrt:~# dmesg
Linux version 2.6.22 (nbd@ds10) (gcc version 4.1.2) #2 Sun Sep 30 20:38:47 CEST 2007
CPU revision is: 00029006
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x03, vendor 0x4243)
ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x06, vendor 0x4243)
ssb: Core 2 found: Fast Ethernet (cc 0x806, rev 0x06, vendor 0x4243)
ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x03, vendor 0x4243)
ssb: Core 4 found: PCI (cc 0x804, rev 0x08, vendor 0x4243)
ssb: Core 5 found: MIPS 3302 (cc 0x816, rev 0x03, vendor 0x4243)
ssb: Core 6 found: V90 (cc 0x807, rev 0x02, vendor 0x4243)
ssb: Core 7 found: IPSEC (cc 0x80B, rev 0x00, vendor 0x4243)
ssb: Core 8 found: MEMC SDRAM (cc 0x80F, rev 0x02, vendor 0x4243)
ssb: Initializing MIPS core...
ssb: set_irq: core 0x0806, irq 2 => 2
ssb: set_irq: core 0x0806, irq 3 => 3
ssb: set_irq: core 0x0804, irq 0 => 4
ssb: Sonics Silicon Backplane found at address 0x18000000
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
On node 0 totalpages: 8192
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists.  Total pages: 8128
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (31 instructions).
Synthesized TLB modify handler fastpath (30 instructions).
PID hash table entries: 128 (order: 7, 512 bytes)
Using 132.000 MHz high precision timer.
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29872k/32768k available (2030k kernel code, 2896k reserved, 297k data, 120k init, 0k highmem)
Calibrating delay loop... 263.16 BogoMIPS (lpj=526336)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
ssb: PCIcore in host mode found
registering PCI controller with io_map_base unset
PCI: fixing up bridge
PCI: Setting latency timer of device 0000:00:00.0 to 64
PCI: Fixing up device 0000:00:00.0
Time: MIPS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 3) is a 16550A
b44.c:v1.01 (Jun 16, 2006)
eth0: Broadcom 10/100BaseT Ethernet 00:1d:60:52:53:d0
eth1: Broadcom 10/100BaseT Ethernet 40:10:18:00:00:2d
flash init: 0x1c000000 0x02000000
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
Amd/Fujitsu Extended Query Table at 0x0040
Physically mapped flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Flash device: 0x800000 at 0x1fc00000
bootloader size: 262144
Creating 4 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007f0000 : "linux"
0x000f8000-0x007f0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x00200000-0x007f0000 : "rootfs_data"
0x007f0000-0x00800000 : "nvram"
nf_conntrack version 0.5.0 (256 buckets, 2048 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear
All bugs added by David S. Miller
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 120k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
diag: Detected 'ASUS WL-500g Premium'
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
Probing device eth0: found!
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
BFL_ENETADM not set in boardflags. Use force=1 to ignore.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
device eth0.0 entered promiscuous mode
usbcore: registered new device driver usb
eth0.0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
eth0.0: add 01:00:5e:00:00:01 mcast address to master interface
br-lan: port 1(eth0.0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0.0) entering forwarding state
PPP generic driver version 2.4.2
wlan: 0.8.4.2 (svn r2568)
eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.30.13 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, REGOPS_FUNC)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (svn r2568)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_pci: 0.9.4.5 (svn r2568)
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
PCI: Enabling device 0000:00:03.2 (0000 -> 0002)
PCI: Fixing up device 0000:00:03.2
ehci_hcd 0000:00:03.2: EHCI Host Controller
ehci_hcd 0000:00:03.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:03.2: irq 6, io mem 0x40000000
ehci_hcd 0000:00:03.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
usbcore: registered new interface driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
SCSI subsystem initialized
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
drivers/usb/serial/usb-serial.c: USB Serial support registered for airprime
usbcore: registered new interface driver airprime

Here is my lsmod:

root@OpenWrt:~# lsmod
Module                  Size  Used by    Tainted: P
airprime                4752  0
usb_storage            27664  0
sd_mod                 18416  0
scsi_mod               71968  2 usb_storage,sd_mod
usbserial              24032  1 airprime
cdc_acm                10896  0
ehci_hcd               28016  0
ohci_hcd               14064  0
ath_pci                94384  0
wlan_xauth               480  0
wlan_wep                4000  0
wlan_tkip               9664  0
wlan_ccmp               5408  0
wlan_acl                1888  0
ath_rate_minstrel       7840  0
ath_hal               271168  2 ath_pci,ath_rate_minstrel
wlan_scan_sta           8736  0
wlan_scan_ap            2624  0
wlan                  146400  9 ath_pci,wlan_xauth,wlan_wep,wlan_tkip,wlan_ccmp,wlan_acl,ath_rate_minstrel,wlan_scan_sta,wlan_scan_ap
ppp_async               9664  0
ppp_generic            20000  1 ppp_async
slhc                    5408  1 ppp_generic
crc_ccitt               1024  1 ppp_async
vfat                    8512  0
fat                    42448  1 vfat
usbcore               102032  7 airprime,usb_storage,usbserial,cdc_acm,ehci_hcd,ohci_hcd
nls_base                4416  2 vfat,fat
switch_robo             4048  0
switch_core             5056  1 switch_robo
diag                    8272  0

Here is my lsusb:

root@OpenWrt:~# lsusb
Bus 001 Device 001: ID 0000:0000

I put the modem in a PC on linux and it has been recognized immediatly.

Any ideas?

Thank you,
Radu

-------------------------------------
From the wiki

It appears that usb-ohci should be running as a module. I don't see it in your lsmod output
So try insmod usb-ohci  and see if that makes a difference

Also try to compare the dmesg output from your linux PC  with that from the Asus wl500gp and
see if you can see what is missing.

Since you are working with a linux 2.6.x kernel - this should eventually work - you will just need to continue persevering and google aroud a bit. You might want to also post the question in the Zapp forums and in other linux groups in your country.

You can also try the openwrt IRC  and you might get lucky and find someone who is willing to help. 
Since I haven't used this modem myself, I'm sorry I don't have more specific suggestions for you

-------------------------------------

You should blame the weeny power supply, I experienced the similar problem before, My wl-500gp box cannt find my 2.5" usb disk, I guess it should be a power supply problem, So I Change the 5V-2.5A supply with a 5V-3A one, It works like a charm. The usb disk works ok now.
As my experience, Atheros wifi seems need more power consumption than Broadcom's, Since it never happened when I use the Broadcom's before.
And, As I notice, More RJ-45 cable connected devices will cause more power consumption, So cut down some cable connected devices or shutdown the atheros wifi first if possible, Obviously,Change the power supply is  a more direct path.

Last edited by yellowbug (2008-04-08 09:27:07)

============================================================
from:


 (Msg. 1) Posted: Thu May 11, 2006 3:13 am
Post subject: Linux driver for GPRS/EDGE (GSM) modem module (Siemens MC75)?
Archived from groups: alt>cellular>gsm, others (more info?)    
Hi,

Recently bought a GPRS/EDGE (GSM) modem module (Siemens MC75) for
remote office connectivity. The supplied windows driver works perfectly
since it detects this USB module as modem via com ports 3-6. Then,
creating the dial-up connection using the detected modem doesn't take
long. I read somewhere that it will work as standard 19200 modem
without any driver.

Should it work in linux without any special driver? If not, where else
to turn to for the linux driver of this modem module (Siemens MC75)?

I'm using Slackware 10.

TIA

__
Raqueeb Hassan
Bangladesh

-----------------------------
 (Msg. 2) Posted: Fri May 12, 2006 2:08 am
Post subject: Re: Linux driver for GPRS/EDGE (GSM) modem module (Siemens MC75)? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)    
Raqueeb Hassan wrote:

> Recently bought a GPRS/EDGE (GSM) modem module (Siemens MC75)
> for remote office connectivity. The supplied windows driver
> works perfectly since it detects this USB module as modem via
> com ports 3-6. Then, creating the dial-up connection using the
> detected modem doesn't take long. I read somewhere that it
> will work as standard 19200 modem without any driver.
>
> Should it work in linux without any special driver? If not,
> where else to turn to for the linux driver of this modem
> module (Siemens MC75)?

Yes. I use the kppp dialer with authentication set to
"PAP/CHAP" with either my Siemens S55 handset or Wavecom modem.
You won't get best GPRS performance at 19200 bps. I use 115200
bps.

John

-----------------------------

(Msg. 3) Posted: Fri Oct 06, 2006 9:36 pm
Post subject: Re: Linux driver for GPRS/EDGE (GSM) modem module (Siemens MC75)? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)    
Sent 11 May 2006 08:13:07 -0700:

> Should it work in linux without any special driver? If not, where else
> to turn to for the linux driver of this modem module (Siemens MC75)?

You might get more response from a Linux ng, but no guarantee, some of
them are pretty fiery!

-----------------------------
(Msg. 4) Posted: Fri Oct 06, 2006 9:36 pm
Post subject: Re: Linux driver for GPRS/EDGE (GSM) modem module (Siemens MC75)? [Login to view extended thread Info.]
Archived from groups: per prev. post ()


On 10/06/2006 10:06 PM, DogFart wrote:
> Sent 11 May 2006 08:13:07 -0700:
>
>> Should it work in linux without any special driver? If not, where else
>> to turn to for the linux driver of this modem module (Siemens MC75)?
>
> You might get more response from a Linux ng, but no guarantee, some of
> them are pretty fiery!

IMHO, the OP should try google:


Plz note /linux in the above said URL; limits the search results from
Linux specific sites.

--
Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709
Anu's Linux@HOME Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India Distros: Ubuntu, Fedora, Knoppix
Home: Visit:



-----------------------------
(Msg. 5) Posted: Fri Oct 06, 2006 9:36 pm
Post subject: Re: Linux driver for GPRS/EDGE (GSM) modem module (Siemens MC75)? [Login to view extended thread Info.]
Archived from groups: per prev. post ()


On Sat, 07 Oct 2006 02:36:32 +1000, DogFart wrote:

> Sent 11 May 2006 08:13:07 -0700:
>
>> Should it work in linux without any special driver? If not, where else
>> to turn to for the linux driver of this modem module (Siemens MC75)?
>
> You might get more response from a Linux ng, but no guarantee, some of
> them are pretty fiery!

What libellous talk! If you want a model of newsgroup restraint and
moderation based on mutual tolerance and respect, look no further than
alt.os.linux.slackware.



-----------------------------
(Msg. 6) Posted: Fri Oct 06, 2006 9:36 pm
Post subject: Re: Linux driver for GPRS/EDGE (GSM) modem module (Siemens MC75)? [Login to view extended thread Info.]
Archived from groups: per prev. post ()


DogFart writes:

> Sent 11 May 2006 08:13:07 -0700:
>
> > Should it work in linux without any special driver? If not, where else
> > to turn to for the linux driver of this modem module (Siemens MC75)?
>
> You might get more response from a Linux ng, but no guarantee, some of
> them are pretty fiery!

What?? How dare you say such a thing, you ignorant cretin!!

Smile
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University
---------------------------
(Msg. 7) Posted: Fri Oct 06, 2006 9:36 pm
Post subject: Re: Linux driver for GPRS/EDGE (GSM) modem module (Siemens MC75)? [Login to view extended thread Info.]
Archived from groups: per prev. post ()


On Fri, 06 Oct 2006 23:14:08 +0200, mark south wrote:

>> You might get more response from a Linux ng, but no guarantee, some of
>> them are pretty fiery!

> What libellous talk! If you want a model of newsgroup restraint and
> moderation based on mutual tolerance and respect, look no further than
> alt.os.linux.slackware.

Yer goddam right. I do hear that some of them, though, such as the
Mandriva, Ubuntu, and Linspire groups are pretty hardcore. Some of those
folks can be downright rude.

--
"Ubuntu" - an African word meaning "Slackware is too hard for me".
-----------------------------
(Msg. 8) Posted: Sat Oct 07, 2006 2:47 am
Post subject: Re: Linux driver for GPRS/EDGE (GSM) modem module (Siemens MC75)? [Login to view extended thread Info.]
Archived from groups: per prev. post ()


Sent Fri, 06 Oct 2006 23:14:08 +0200:

> What libellous talk! If you want a model of newsgroup restraint and
> moderation based on mutual tolerance and respect, look no further than
> alt.os.linux.slackware.

I agree the OZ ng's are quite civilised, but the ones mainly based in
USA get quite excited at times. You can get flamed by asking the
simple questions, they only want the obscure stuff! Smile
---------------------------
(Msg. 9) Posted: Sat Oct 07, 2006 5:06 am
Post subject: Re: Linux driver for GPRS/EDGE (GSM) modem module (Siemens MC75)? [Login to view extended thread Info.]
Archived from groups: per prev. post ()


Sent 06 Oct 2006 17:29:35 -0600:

> > You might get more response from a Linux ng, but no guarantee, some
> > of them are pretty fiery!
>
> What?? How dare you say such a thing, you ignorant cretin!!

There you go again! Wink



============================================================
from:

I’m on my way to my hometown now for this 4 days CNY break, and thanks to this Huawei E600 UMTS data card, I’m able to post this blog entry while having some light meal on the roadside. I’m a registered Celcom 3G unlimited plan, and  with it I can enjoy 3G connection with my laptop wherever possible, with GPRS as fallback if 3G is not available in the area.

Setting up the data card is supposed to be a very easy task in Linux, but before I get to know the right way to actually get it to work, I screw up the data card for few times that I need to send it for warranty to have the firmware flashed after following some online guides. It was not a pleasant journey, and I hope with this post others wouldn’t need to go through the path that I’ve been to.

The first thing to do is to make sure you have PCMCIA support in the kernel.

Bus options (PCI, PCMCIA, EISA, MCA, ISA) —>
    PCCARD (PCMCIA/CardBus) support —>
         PCCard (PCMCIA/CardBus) support
         CardBus yenta-compatible bridge support

and you also need the driver for your data card

Device Drivers —>
    USB support —>
         OHCI HCD support
        USB Serial Converter support —>
             USB Serial Converter support
            [*] USB Generic Serial Driver
             USB driver for GSM and CDMA modems

and support for PPP connection

Device Drivers —>
    Network device support —>
         PPP (point-to-point protocol) support
         PPP support for async serial ports

That’s all needed in the kernel, and now it’s time to install the required software. As I’m using comgt and kppp, the rest of the post will be specific to these 2 applications, though there are other methods in establishing the connection.

Let’s first install comgt:

wget
tar xvzf comgt.0.32.tgz
cd comgt.0.32
make
sudo make install

kppp is a KDE application to handle ppp connections and your distro might already have it installed in your system. Here’s the configuration file used to establish the connection (copied from the net, but some parts of it are not important as comgt will fetch the pre-set settings from the data card itself, in our case specific to Celcom):

root@herugrim ~ # cat .kde/share/config/kppprc
[Account0]
AccountingEnabled=0
AccountingFile=
Authentication=3
AutoDNS=1
AutoName=0
BeforeConnect=xterm -e /usr/local/bin/comgt -x -d /dev/ttyUSB2
BeforeDisconnect=
CallbackPhone=
CallbackType=0
Command=
DNS=
DefaultRoute=1
DisconnectCommand=
Domain=
ExDNSDisabled=0
Gateway=0.0.0.0
IPAddr=0.0.0.0
Name=Celcom3G
Password=1234
Phonenumber=*99***1#
ScriptArguments=
ScriptCommands=
StorePassword=1
SubnetMask=0.0.0.0
Username=user
VolumeAccountingEnabled=0
pppdArguments=defaultroute,crtscts,modem,noipdefault,usepeerdns,novj,debug

[Account1]
pppdArguments=

[General]
AutomaticRedial=0
DefaultAccount=Celcom3G
DefaultModem=HUAWEI
DisconnectOnXServerExit=1
DockIntoPanel=1
NumberOfAccounts=2
NumberOfModems=3
PPPDebug=0
QuitOnDisconnect=0
RedialOnNoCarrier=0
ShowLogWindow=1

[Graph]
Background=255,255,255
Enabled=true
InBytes=0,0,255
OutBytes=255,0,0
Text=0,0,0

[Modem0]
AnswerResponse=CONNECT
AnswerString=ATA
BusyResponse=BUSY
BusyWait=0
ConnectResponse=CONNECT
DLPResponse=DIGITAL LINE DETECTED
Device=/dev/ttyUSB0
DialString=ATD
Enter=CR
EscapeGuardTime=50
EscapeResponse=OK
EscapeString=+++
FlowControl=Hardware [CRTSCTS]
HangUpResponse=OK
HangupString=+++ATH
InitDelay=50
InitResponse=OK
InitString=AT+CFUN=1
InitString1=AT+CGDCONT=1,"IP","gprsinternet","",0,0
Name=HUAWEI
NoCarrierResponse=NO CARRIER
NoDialToneDetection=ATX3
NoDialToneResp=NO DIALTONE
PreInitDelay=50
RingResponse=RING
Speed=460800
Timeout=82
ToneDuration=70
UseLockFile=1
Volume=0
VolumeHigh=M1L3
VolumeMedium=M1L1
VolumeOff=M0L0
WaitForDialTone=1

[WindowPosition]
WindowPositionConWinX=487
WindowPositionConWinY=498
WindowPositionStatWinX=815
WindowPositionStatWinY=485



That's all the preparations needed, and you should be able to connect to Celcom 3G. Here's a screenshot of my connection.




If you enjoyed this article please consider sharing it! Tweet this! StumbleUpon Reddit Digg This! Bookmark on Delicious Share on Facebook
17 Comments to “Huawei E600 Data Card (Celcom 3G) in Linux”

    *
      emi February 18, 2007 at 3:45 am

      Have a good holiday!! PEACE
    *
      shakir February 18, 2007 at 5:53 am

      Thanks, and enjoy your long holiday too (which will only start in a week’s time..)
    *
      Irwan February 18, 2007 at 9:07 am

      Great article! Menarik juga Data Card nie, tapi harga mahal sangat.
    *
      shakir February 18, 2007 at 12:16 pm

      In my case tak mahal jugak since I bought it during the HP-Celcom promotion (not sure if the promo is still on) where I pay RM5K and get a Core 2 Duo laptop + this Huawei E600 data card + 2 years subscription to Celcom 3G unlimited plan. I personally prefer this data card rather than connecting through handset + bluetooth since I always leave the connection open (for torrenting, downloading, instant messaging etc), and to make things better, I can get full 3G connection here at my hometown with Celcom..
    *
      nzuhdi February 21, 2007 at 4:01 am

      nice tutorial bro, i wrote on the same topic but using wvdial. btw, is there any indicator when we’re on 3G or GPRS?

     
     
    *
      shakir February 21, 2007 at 4:44 am

      Nice tutorial from you too. Here I skipped some unnecessary details (cat, tail, modprobe etc2) though things would just work without it (in my case la). Some hiccups however when using the modules as in my case I had this unclean module loading/unloading and so I compiled all that ’s needed into the kernel itself, instead as module. I’m also having problem with my other serial driver (pl2302) when used togather with this data card, but I’m not gonna discuss it further here since not many of us using them both here :) But then, they work great for me now.

      And no, so far I haven’t found any 3G/GPRS indicator for the connection (except for the max connection speed in the kppp statistics window).
    *
      tuksedara February 22, 2007 at 9:32 am

      wei. brp speed dio.. hehe.. tanya jah la.. nak pakai lam utan ni tok leh..
    *
      shakir February 22, 2007 at 10:04 am

      I got it as advertised, 384Kbps (translated to 48KBps) for 3G (UMTS). Hoping to get 3.5G (HSDPA), as the advertised speed is 1.8Mbps..
    *
      Rahmat June 1, 2007 at 3:36 pm

      Mas tolongin donk …..
      Saya sangat berminat dengan Linux fedora core 4.
      Tapi saya ga punya software nya.
      Punya ga mas???
      Kirimin donk kesaya.
      Ato ke e_mail saya ya.
      rahmat.hdyt@gmail.com
    *
      dolphin July 2, 2007 at 7:32 am

      semua jenis pcmcia card boleh ke guna step by step ni bang ?
    *
      dolphin July 2, 2007 at 9:59 am

      dah try, tapi tak detect :(
      guna pcmcia card cingular
    *
      hoho September 28, 2007 at 5:19 am

      I’m thinking of getting E870 Huawei

     

      for celcom. I’m in Taiwan now. Will it work? I only have expresscard slot in my laptop.

      Any comment is much appreciated.
    *
      jafny January 25, 2008 at 11:27 am

      knape ade error ble make & make install..?
      huhu…
      masih xdapat buat lagi nie… =)
    *
      arip March 15, 2008 at 10:55 pm

      PCMCIA slot dgn express card slot benda sama x??????
    *
      rajah March 25, 2008 at 12:33 am

      i would like to know where i can download the driver for xp coz its not on the site and i lost my cd
    *
      leez July 15, 2008 at 12:32 pm

      ade driver die tak?
    *
      fakarudden September 28, 2008 at 6:09 pm

      minta tlg. ada driver huawei E600 data card driver tak?

============================================================
from: ~giulio/other/huawei-E1692.html

HUAWEI E220 HSDPA USB modem

Authors: Giulio Bottazzi
Contact: <>
Date: 13 July 2009
Version: 0.2

These notes explain how to setup and use the E1692 HSDPA USB modem on your Linux system.

I'm writing these notes because the software included in the modem by the service provider, in my case, does not work so well.

The following instructions have been tested on a Gentoo system, but they should apply with minimal modifications to any Linux box. A substantial part of them come from '' blog. I provide a modified 'chat' script which result, on my system, in a much faster data transfer. I've also added a set of 'udev' rules that allow for an automatic configuration of the device.

In order to have the modem functioning you need to have all necessary modules compiled in the kernel. The HUAWEI E169 is both a HDSPA modem and a storage device. Indeed it contains a MicroSD Card Slot. We will ignore the storage aspect of the device and focus on its use as a modem. Once the device is plugged in, it is necessary to tell the system to recognize it as a communication device rather then an external disk. For this purpose we are going to use a specific piece of software called usb_modeswitch_

But let's start from the beginning.

In recent kernel, the HUAWEI E196 modem is supported by the USB serial 'option' driver (option module). To use it, you also need the support for the PPP protocol and for asynchronous serial ports. To check if these drivers are compiled in the kernel, use:

zgrep "CONFIG_PPP" /proc/config.gz
zgrep "CONFIG_PPP_ASYNC" /proc/config.gz
zgrep "CONFIG_USB_SERIAL_OPTION" /proc/config.gz

or check your kernel configuration (on Gentoo systems, if you use genkernel it can be found in /etc/kernels/).

If the options are not set as a module (this is the case if they are follows by a =m), recompile your kernel with the following options activated:

Device Drivers  ---> USB Support --->
[M] USB Serial Converter support --->
[M] USB driver for GSM and CDMA modems

Device Drivers ---> Network device support --->
[M] PPP (point-to-point protocol) support
[M] PPP support for async serial ports

If you say [M] for "USB Serial Converter support" and for "USB driver for GSM and CDMA modems", you get the 'option' module.

Checking the device

Once the drivers are available, plug the key and use:

lsusb -v

to see if the modem has been properly recognized. You should see something like:

...
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x1446
bcdDevice 0.00
iManufacturer 3 HUAWEI Technology
iProduct 2 HUAWEI Mobile
...

At this point it is quite likely that the device has been recognized as an external storage device. You can check this using:

tail /var/log/message

and look for a string like:

... sd 4:0:0:0: [sdb] Attached SCSI removable disk
... sd 4:0:0:0: Attached scsi generic sg1 type 0
...
... sr0: scsi-1 drive
... Uniform CD-ROM driver Revision: 3.20
... sr 3:0:0:0: Attached scsi CD-ROM sr0
... sr 3:0:0:0: Attached scsi generic sg2 type 5
... usb-storage: device scan complete

The E1692 modem has a dual nature: it is both a communication and a storage device. It is in general recognized by the kernel as a device of the latter type. In this case, it is necessary to change its mode of operation. The program '' has been designed for this purpose.

Install the program using the package provided by your system. Under Gentoo it's simply the matter of a:

emerge usb_modeswitch

maybe after having de-masked the package:

echo sys-apps/usb_modeswitch >> /etc/portage/package.keywords)

Once the package is installed, edit its configuration file /etc/usb_modeswitch.conf commenting everything out and inserting the following lines

File:/etc/usb_modeswitch.conf
DefaultVendor=  0x12d1
DefaultProduct= 0x1446

TargetVendor= 0x12d1
TargetProduct= 0x140c

MessageEndpoint= 0x01
MessageContent="55534243000000000000000000000011060000000000000000000000000000"

At this point it is sufficient to start the program:

# usb_modeswitch

and the modem nature of the device should become available. Check it inspecting \var\log\messages. You should find something like:

...
... GSM modem (1-port) converter detected
... GSM modem (1-port) converter now attached to ttyUSB0
...

possibly for up to four different devices /dev/ttyUSB[0,1,2,4] which have been created. Your modem is ready to be used.

udev rules

In principle one can automatically load the option module at boot time by inserting a line in /etc/modules.autoload.d/kernel-2.6 and manually switch the device to modem mode.

We will follow a more sophisticated approach: we will create an explicit rule for udev.

Edit the file /etc/udev/rules.d/50-huawei.rules inserting the following lines

File:/etc/udev/rules.d/50-huawei.rules
SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/sbin/modprobe option"
SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/usr/sbin/usb_modeswitch"

This file tells the system that if the device is inserted, it should load the 'option' module and switch to modem mode. Issue the following command to let the system know about your new setting:

# udevadm control --reload-rules

unplug and plug again the USB device. Toward the end of the log file /var/log/messages you should find something like:

...
... option 5-1.2:1.0: GSM modem (1-port) converter detected
... usb 5-1.2: GSM modem (1-port) converter now attached to ttyUSB0
...

If this is the case, the udev system is working as expected.

The HUAWEI E1692 adapter works as a modem and relies on PPP to establish a connection. One can in principle use any PPP management program. Several GUI programs are available for both KDE and Gnome. In what follows I stick with a bare-bone approach.

The necessary software is called 'ppp'. Install it using the package management system of your Linux distribution (for gentoo, it's emerge net-dialup/ppp). Once the package is installed, create the following file

File:/etc/ppp/peers/tim
/dev/ttyUSB0
460800
hide-password
noauth
debug
-crtscts
remotename huawei
ipparam huawei
# connect script
connect "/usr/sbin/chat -v -s -f /etc/ppp/chat-tim"
# dns, routing
usepeerdns
defaultroute
noipdefault
nodetach

This file defines the connection parameters. In particular it calls a chat script to start the connection. Create the script as follows

File:/etc/ppp/chat-tim
TIMEOUT 25
ABORT BUSY
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
ABORT 'RINGING RINGING'
ABORT 'Username/Password Incorrect'
'' ATZ
'OK-+++\c-OK' ATH0
'OK' ATDT*99#
CONNECT \c \

At this point you should be able to start the PPP connection simply using:

pon tim

and stop it with:

poff tim

In order to work the procedure above could possibly require that the initial check of the PIN value is turned off in the data SIM. This can be obtained by inserting the SIM card in a regular mobile phone and selecting the appropriate option, or by installing the software provided by the producer and distributed together with the device, under Windows or Linux. This software is pre-installed on the internal memory of the device, which can be accessed as a regular USB memory key.

======================================================================

======================================================================

======================================================================

======================================================================


阅读(26859) | 评论(0) | 转发(0) |
0

上一篇:at command operation

下一篇:libpcap移植

给主人留下些什么吧!~~