slitaz-doc-wiki-data view pages/en/guides/cricket-a600.txt @ rev 7

Add pages/en folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 12:17:18 2011 +0000 (2011-02-26)
parents
children
line source
1 ====== Setting Up The Cricket A600 Broadband Modem ======
3 ===== Introduction =====
5 First thing you need to do is download wvdial and all it's dependencies. It will do that automatically. From terminal as root:
6 <code> # tazpkg get-install wvdial</code>
8 Download this:[[http://people.slitaz.org/~jozee/packages/3G_modem/usb_modeswitch-1.0.5.tazpkg|Jozee's USB_Modeswitch]] Then from terminal as root install it:
9 <code> # tazpkg install /path/to/usb_modeswitch-1.0.5.tazpkg</code>
10 /path/to is where you downloaded it to. So you will need to adjust the above.
12 Make a script called flipflop.sh You can place it anywhere but I am going to use where I have it as an example:
13 ///home/tux/scripts///
15 If you use another name besides "tux" then adjust it accordingly. Now open up flipflop.sh with your prefered editor. Put the following in it and save the file:
16 <file>
17 /usr/sbin/usb_modeswitch
18 sleep 15
19 usb_modeswitch -v 0x1f28 -p 0x0020 -R 1
20 </file>
21 From terminal we need to chmod it so you can use the script:
22 <code> # chmod a+x /home/tux/scripts/flipflop.sh</code>
23 Again if you have it saved somewhere else then adjust accordingly. Sorry to repeat that lol.
25 ===== wvdial.conf =====
27 We have now installed all that we need to install. There are just a few more steps involved. We need to edit wvdial.conf . As root from terminal enter this:
28 <code> # leafpad /etc/wvdial.conf</code>
29 In wvdial.conf we need to make it look like this:
30 <file>
31 [Dialer Defaults]
32 Modem = /dev/ttyACM0
33 Baud = 460800
34 Stupid Mode = 1
35 Auto DNS = 1
36 Init1 = ATZ
37 Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
38 ISDN = 0
39 Modem Type = USB Modem
40 Phone = #777
41 FlowControl = Hardware (CRTSCTS)
42 Dial Command = ATDT
43 Username = Your Cricket Number Goes Here.
44 Password = Cricket
45 </file>
47 Where it says "Your Cricket Number Goes Here" replace that with your cricket number. Your cricket number should be on your monthly bill if you don't know what it is. Once it is done save the file.
49 Now again as root in terminal issue this command:
50 <code> # /home/tux/scripts/flipflop.sh</code>
52 You should get something like this below:
53 <code>
54 Looking for target devices ...
55 No devices in target mode or class found
56 Looking for default devices ...
57 Found default devices (1)
58 Found a default device NOT in target class mode
59 Accessing device 003 on bus 002 ...
60 Using endpoints 0x08 (out) and 0x87 (in)
61 Inquiring device details; driver will be detached ...
62 Looking for active driver ...
63 OK, driver found ("dummy")
64 OK, driver "dummy" detached
66 Received inquiry data (detailed identification)
67 -------------------------
68 Vendor String: Cricket
69 Model String: T-Flash Disk
70 Revision String: 2.31
71 -------------------------
73 Device description data (identification)
74 -------------------------
75 Manufacturer: Cal-comp E&CC Limited
76 Product: USB Micro SD Storage
77 Serial No.: XXXXXXXXXXXXXXX
78 -------------------------
79 Setting up communication with interface 0 ...
80 Trying to send the message to endpoint 0x08 ...
81 OK, message successfully sent
82 Device is gone, skipping any further commands
83 -> Run lsusb to note any changes. Bye.
86 Looking for target devices ...
87 No devices in target mode or class found
88 Looking for default devices ...
89 No default device found. Is it connected? Bye.
91 tux@slitaz:~$
92 </code>
94 It looks like it totally failed but it didn't. It just doesn't know what the driver is. Again from root execute this command:
95 <code> # modprobe cdc_acm</code>
96 That should be the last time you have to enter that command. We will now add it to to the LOAD_MODULES line in /etc/rcS.conf to load at boot.
98 ===== rcS.conf =====
100 From terminal as root:
101 <code> # leafpad /etc/rcS.conf</code>
102 Go down to the following line:
103 <file>LOAD_MODULES="snd_intel8x0 yenta_socket rtc agpgart intel-agp"</file>
104 Add this to the line: "cdc_acm" It should now look like this:
105 <file>LOAD_MODULES="snd_intel8x0 yenta_socket rtc cdc_acm agpgart intel-agp"</file>
106 Save it and exit.
108 We are almost done. From terminal as root again give this command:
109 <code> # wvdial</code>
111 It should now dial and connect. Do not close the terminal or it will disconnect. Everytime you poweroff or unplug the modem you have to do the flipflop.sh like I showed you above. If you just reboot your computer you don't have to do the flipflop.sh. Good Luck