Sprint Sierra 580 EVDO Card & Linux

by Little Bear @24 ส.ค. 49 16:32 ( IP : 61...38 ) | Tags : Aircard 580

I have received a few inquiries into my configuration of the Sierra 580 EvDO wireless card under Linux, so here is my tutorial on how to get that done. Enjoy!

I got the card working under Debian Sarge (3.1) with little modification. This method should work with all linux distributions with little or no modification. (Some of the following information was gleaned from other sites as I scanned the net for resources, so you may see bits and pieces of the following information across several sites on the net.)

Follow the steps as shown, and you should be able to connect just fine...

There is an initial assumption that the wireless card has already been activated by sprint (and probably used in windows at some point to verify that it works.)

1. Insert your wireless card and be sure that your computer recognizes it as a USB device. Look in dmesg for it. Once you have verified that it is recognized by your system, proceed to step 2.

2. Issue the following commands (you will need to sudo or su to do this)

# modprobe usbserial vendor=0x1199 product=0x0112

# mknod /dev/ttyUSB0 c 188 0

Next is the configuration of PPPD and the scripts needed.

3. Create a file named '1xevdo' with the following text, and place it in the '/etc/ppp/peers/' directory

lcp-echo-interval 0
-detach
ttyUSB0
115200
debug
noauth
defaultroute
usepeerdns
user 210xxxxxxx@sprintpcs.com
show-password
crtscts
lock
connect '/usr/sbin/chat -v -t3 -f /etc/ppp/peers/1xevdochat'

Be sure to replace '210xxxxxxx' with your wireless card's area code and 7 digit phone number.

4. Create another file, named '1xevdo
chat' with the text below and place in the ' /etc/ppp/peers/' directory.

'' 'AT'
'OK' 'ATE0V1&F&D2&C1&C2S0=0'
'OK' 'ATE0V1'
'OK' 'ATS7=60'
'OK' 'ATDT#777'

5. Use your text editor of choice (we all know it's vi) to add the following line to '/etc/ppp/pap-secrets'

210xxxxxxx@sprintpcs.com * zzzz

where '210xxxxxxx' is the phone number assigned to your card, and 'zzzz' is the password for your wireless card account (typically the last 4 digits of the phone number).

6. as root, issue the following command to connect to the internet

# pppd call 1xevdo

--------

That's all the instructions for the process, and hopefully it will work for you. here are some observations I have:

If you get a 'connect script failed' type of error, and you are sure that you followed the instructions, remove the wireless card and reinsert it. This is what I had to do to get my card to work properly.

The modprobe and mknod commands will need to be re issued every time you reboot. You will not need to recreate the files and scripts. You can automate the scripts for modprobe and mknod if you wish. I will post more on the automation later.

You will get two types of output when your attempt to run the script. Either you will get an error (failed connection script), or you will get a long output similar to the following:

serial connection established.
using channel 2
Using interface ppp1
Connect: ppp1 <--> /dev/ttyUSB0
sent [LCP ConfReq id=0x1 ]
rcvd [LCP ConfReq id=0x0 ]
sent [LCP ConfAck id=0x0 ]
rcvd [LCP ConfReq id=0x1 ]
sent [LCP ConfAck id=0x1 ]
sent [LCP ConfReq id=0x1 ]
rcvd [LCP ConfAck id=0x1 ]
sent [LCP EchoReq id=0x0 magic=0xeda0c264]
sent [CCP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 < ms-dns3 0.0.0.0>]
rcvd [LCP DiscReq id=0x2 magic=0xee74136c]
rcvd [LCP EchoRep id=0x0 magic=0xee74136c ed a0 c2 64]
rcvd [IPCP ConfReq id=0x3 ]
sent [IPCP ConfAck id=0x3 ]
rcvd [LCP ProtRej id=0x4 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfRej id=0x1 ]
sent [IPCP ConfReq id=0x2 ]
rcvd [IPCP ConfNak id=0x2 ]
sent [IPCP ConfReq id=0x3 ]
rcvd [IPCP ConfAck id=0x3 ]
not replacing default route to ppp0 [10.5.250.5]
Cannot determine ethernet address for proxy ARP
local IP address xx.x.xx.xx
remote IP address xx.xx.xxx.xx
primary DNS address xx.xx.xxx.xx
secondary DNS address xx.xx.xxx.xx
Script /etc/ppp/ip-up started (pid 4273)
Script /etc/ppp/ip-up finished (pid 4273), status = 0x0



Once you are connected, by seeing the above information in your terminal window, open a web browser and try to view some pages. If your browser cannot serve pages, you may need to edit your resolve.conf file manually and add the DNS servers that you see in the above output. This should get you on the road to full connectivity in linux!

If you have any questions, feel free to e-mail me at dryicezero [a-t] gmail.com.

//Ernest

ที่มา : http://dryicezero.blogspot.com/2005/12/sprint-sierra-580-evdo-card-linux.html

Comment #1
Noyzi!!a (Not Member)
Posted @15 ส.ค. 50 19:46 ip : 58...12

ของผมมี error ครับ

Serial connection established.using channel 4Using interface ppp0Connect: ppp0 <--> /dev/ttyUSB0sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd8f67e43> <pcomp> <accomp>]rcvd [LCP ConfReq id=0x0 <mru 1500> <asyncmap 0x0> <auth chap MD5> <magic 0xf6e31b8> <pcomp> <accomp>]No auth is possiblesent [LCP ConfRej id=0x0 <auth chap MD5>]rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xd8f67e43> <pcomp> <accomp>]rcvd [LCP ConfReq id=0x1 <mru 1500> <asyncmap 0x0> <magic 0xf6e478b> <pcomp> <accomp>]sent [LCP ConfAck id=0x1 <mru 1500> <asyncmap 0x0> <magic 0xf6e478b> <pcomp> <accomp>]sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15> <bsd v1 15>]sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]rcvd [IPCP ConfReq id=0x0 <addr 2.2.2.2>]sent [IPCP ConfAck id=0x0 <addr 2.2.2.2>]rcvd [LCP ProtRej id=0x2 80 fd]Protocol-Reject for 'Compression Control Protocol' (0x80fd) receivedrcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]rcvd [IPCP ConfNak id=0x2 <addr 10.184.13.150> <ms-dns1 172.25.3.1> <ms-dns3 172.25.3.2>]sent [IPCP ConfReq id=0x3 <addr 10.184.13.150> <ms-dns1 172.25.3.1> <ms-dns3 172.25.3.2>]rcvd [LCP TermReq id=0x3]LCP terminated by peersent [LCP TermAck id=0x3]rcvd [IPCP ConfAck id=0x3 <addr 10.184.13.150> <ms-dns1 172.25.3.1> <ms-dns3 172.25.3.2>]Discarded non-LCP packet when LCP not openConnection terminated.Modem hangup
Comment #2
Posted @15 ส.ค. 50 21:21 ip : 61...235

อืมห์ ไม่แน่ใจเหมือนกันครับ

แต่ผมเคยทำได้ สามารถต่อเน็ตได้ แตช่วงนี้ไม่ได้ใช้นานแล้ว 

Comment #3
Noyzi!!a (Not Member)
Posted @23 ส.ค. 50 15:40 ip : 58...12

ท้อละครับ ถึงวันนี้ยังไม่ได้เลย

Comment #4
Posted @15 ธ.ค. 50 23:12 ip : 61...97

ผมลองมาดูใหม่อีกที

คำสั่งที่ใช้คือ

คำสั่งในไฟล์ 1xevdo คือ

lcp-echo-interval 0
-detach
ttyUSB5
115200
debug
noauth
defaultroute
usepeerdns
user evdo@catevdo.com
show-password
crtscts
connect '/usr/sbin/chat -v -t3 -f /etc/ppp/peers/1xevdo_chat'

คำสั่งในไฟล์ 1xevdo_chat คือ

'' 'AT'
'OK' 'ATE0V1&F&D2&C1&C2S0=0'
'OK' 'ATE0V1'
'OK' 'ATS7=60'
'OK' ATDT#777'

แล้วเรียกใช้คำสั่งต่อไปนี้ในสิทธิ์ของ root

# modprobe usbserial vendor=0x1199 product=0x0112
# mknod /dev/ttyUSB5 c 188 0
# pppd call 1xevdo

ปล. comment นี้เขียนใน Ubuntu ต่อเน็ตด้วย CAT CDMA Sierra 580 EVDO

แสดงความคิดเห็น

« 1947
หากท่านไม่ได้เป็นสมาชิก ท่านจำเป็นต้องป้อนตัวอักษรของ Anti-spam word ในช่องข้างบนให้ถูกต้อง
The content of this field is kept private and will not be shown publicly. This mail use for contact via email when someone want to contact you.
Bold Italic Underline Left Center Right Ordered List Bulleted List Horizontal Rule Page break Hyperlink Text Color :) Quote
คำแนะนำ เว็บไซท์นี้สามารถเขียนข้อความในรูปแบบ มาร์คดาวน์ - Markdown Syntax:
  • วิธีการขึ้นบรรทัดใหม่โดยไม่เว้นช่องว่างระหว่างบรรทัด ให้เคาะเว้นวรรค (Space bar) ที่ท้ายบรรทัดจำนวนหนึ่งครั้ง
  • วิธีการขึ้นย่อหน้าใหม่ซึ่งจะมีการเว้นช่องว่างห่างจากบรรทัดด้านบนเล็กน้อย ให้เคาะ Enter จำนวน 2 ครั้ง