EVDOforums.com
Discussion forum for EVDO users
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 

View previous topic :: View next topic  
Author Message
ericc
EVDO Newbie


Joined: 25 Mar 2006
Posts: 2

PostPosted: Sat Mar 25, 2006 3:09 pm    Post subject: Linux with the Sierra Wireless MC5720 in the Lenovo Z60t

Hello,

I have a dual boot Windows XP and SuSE 10.0 Z60t laptop. I signed up for Verizon EV-DO a month or so ago and really like it. I activated the modem under Windows XP.

I wanted to get EV-DO service working under Linux. There is little information on the MC5720 mini-pci card and not much on using similar cards under Linux. The main problem is the rf section of the wireless cards are powered down at bootup and the Windows XP drivers power them up when used. I needed to install a newer linux driver for the 802.11A/B/G card before it would power up.

I setup the serial port of the MC5720 as a generic USB serial port and use the udev system for configuration. A hardware configuration and udev action needs to be setup.

/etc/sysconfig/hardware/hwcfg-usb-evdo
Code:
# Sierra Wireless EV-DO modem
# Setup as usb serial modem
MODULE='usbserial'
MODULE_OPTIONS='vendor=0x1199 product=0x0218'
STARTMODE='auto'


/etc/udev/rules.d/10-local.rules
Code:
SUBSYSTEM=="usb", ACTION=="add", SYSFS{product}="Sierra Wireless MC5720 Modem", RUN+="/sbin/hwup usb-evdo usb-evdo -o hotplug"


I have not made the modifications for maxSize yet but when I do the maxSize option goes on the MODULE_OPTIONS line. After rebooting 3 serial ports were created (ttyUSB0, ttyUSB1, and ttyUSB2). I was able to use the minicom program to issue AT command on /dev/ttyUSB0. The example scripts I have seen for the chat session during logon were confusing as they were not in the right format. I edited the script to make it work but left in what looked like multiple sends of the command lines. The secret for powering up and down the rf section is the !PCSTATE command. I power up on connect and power down on disconnect. Use the NAI field in the AT$QCMIPGETP command to replace the <your phone number here> text below.

/etc/ppp/peers/1xevdo
Code:
-detach
ttyUSB0
115200
debug
noauth
defaultroute
usepeerdns
connect-delay 10000
user <your phone number here>@vzw3g.com
show-password
crtscts
lock
lcp-echo-failure 4
lcp-echo-interval 65535
connect '/usr/sbin/chat -v -s -t3 -f /etc/ppp/peers/1xevdo_chat'
disconnect '/usr/sbin/chat -v -s -t3 -f /etc/ppp/peers/1xevdo_chat_disconnect'


/etc/ppp/peers/1xevdo_chat

Code:
# AT$QCMIPGETP  "login" name used for MobileIP, which usually matches your MIN.
# AT+GSN        ESN in hex
# AT+GMR        firmware revision and build date.
# AT+CSQ        first number indicates the signal strength above -109 dBm (in
#               2 dBm increments).  A value of 7 or higher (-95 dBm) can be
#               considered adequate. 31 is the max.  (Possible values in
#               Audiovox PC5740 are 0, 7, 15, 23, 31.)
# AT+CDV=*22899 Update PRL.  at+cdv=*22899 | OK | Lost carrier.
ABORT 'NO CARRIER' ABORT ERROR ABORT 'NO DIALTONE' ABORT BUSY ABORT 'NO ANSWER'
'' 'ATTEV1&F&D2&C1&C2S0=0S7=60'
'OK' 'AT!PCSTATE=1'
'OK' 'ATTEV1&F&D2&C1&C2S0=0S7=60'
'OK' 'ATTEV1&F&D2&C1&C2S0=0S7=60'
'OK' 'AT+CSQ;D#777'
TIMEOUT 70
'CONNECT-AT+CSQ;D#777-CONNECT'


/etc/ppp/peers/1xevdo_chat_disconnect
Code:
TIMEOUT 30
'NO CARRIER' 'AT!PCSTATE=0'
'OK' 'AT!PCSTATE=0'
'OK' ''


I also put the following line in /etc/ppp/chap-secrets but it did not seem to be needed.
Code:

#hostname       *       password
<your phone number here>@vzw3g.com  * vzw


Currently I start a terminal session under KDE and use the su command to get to root. I then issue a pppd call 1xedo command to call and a control-C to disconnect. I am working on getting this to work under kinternet but I need to read up some more on the kinternet package.

73 Eric
Back to top
View user's profile
ammulder
EVDO Newbie


Joined: 29 Mar 2006
Posts: 8

PostPosted: Thu Mar 30, 2006 2:59 pm    Post subject: Still getting NO CARRIER with this configuration on T60p

I tried this formula on a T60p with SuSE 10.1 beta 8. When I call pppd it runs the whole script and then fails at the end:
...
send (AT+CSQ;D#777^M)
timeout set to 70 seconds
expect (CONNECT)
^M
AT+CSQ;D#777^M^M
99, 99^M
^M
NO CARRIER
-- failed
Failed (NO CARRIER)
Connect script failed

I wonder if my Verizon card is not powered on? What did you have to do to power it on? I have an Intel 3945 wireless in there with it, and I'm running the driver and daemon that activates the 3945 card and I can see it as eth1, so I think that much is working, but it doesn't seem to be helping the Verizon card. (It works fine in Windows)

Thanks,
Aaron
Back to top
View user's profile
ammulder
EVDO Newbie


Joined: 29 Mar 2006
Posts: 8

PostPosted: Sat Apr 01, 2006 5:31 pm    Post subject: Power on solved

It seems that if I use the switch on the front of the laptop case that controls the wireless, that can power on the Verizon card. That is, when I first booted, only 802.11 wireless was enabled. After flipping the switch off and on again, bluetooth and the Verizon lights both came up, and now the pppd connection script works as expected.

I seem to get pretty equivalent speed from Windows and Linux (50-70 kB/s downloads in the Minneapolis area where I first tried this).

I have also been able to connect from a car on the NJ turnpike, though the connection wasn't very fast -- presumably it wasn't close enough to Philadelphia or New York. Smile
Back to top
View user's profile
ammulder
EVDO Newbie


Joined: 29 Mar 2006
Posts: 8

PostPosted: Sat Apr 01, 2006 9:17 pm    Post subject: Well, maybe...

The next time I booted the power switch trick didn't work -- nothing I tried would enable the Verizon card.

I rebooted to Windows, connected there, rebooted to Linux, flipped the wireless power switch to off while it was in the BIOS, waited until Linux was fully up, then flipped the power switch to on and tried connecting and it worked. I'm not sure which part of this process helped. Grrr! Smile
Back to top
View user's profile
ericc
EVDO Newbie


Joined: 25 Mar 2006
Posts: 2

PostPosted: Mon Apr 03, 2006 3:51 pm    Post subject:

Hello,

On the Z60t I keep the switch on. The card should turn on when AT!PCSTATE=1 is sent to the card in the dialup script. AT!PCSTATE=0 turns it off. I can see the wireless light turn on before dialing and turn off after disconnect.

It could be something else coming into play for power control. I was able to use minicom to communicate with the modem as the AT interface is still active when "off". It uses a version of the AT command set. The &V and +GCAP commands work. Here is what my modem returns.
Code:
AT&V

&C: 1; &D: 2; &F: 0; E: 1; L: 1; M: 0; Q: 0; V: 1; X: 4; Z: 0; S0: 0;
S3: 13; S4: 10; S5: 8; S6: 2; S7: 45; S8: 2; S9: 6; S10: 14; S11: 95;
+FCLASS: 0; +ICF: 3,3; +IFC: 2,2; +IPR: 115200; +DR: 0; +DS: 0,0,2048,6;
+CDR: 0; +CDS: 0,1,2048,6; +CFC: 0; +CFG: ""; +CMUX: C,2; +CQD: 10;
+CRC: 0; +CRM: 2; +CTA: 30; +CXT: 0; +EB: 1,0,30; +EFCS: 1; +ER: 0;
+ES: 3,0,2; +ESR: 1; +ETBM: 1,1,20; +ILRR: 0; +MA: ; +MR: 0; +MS: ;
+MV18R: 0; +MV18S: 0,0,0; +FAA: 0; +FAP: 0,0,0; +FBO: 0; +FBU: 0;
+FCQ: 1,0; +FCC: 0,1,0,0,0,0,0,0;  +FCR: 0; +FCT: 1E; +FEA: 0;
+FFC: 0,0,0,0; +FHS: 0; +FIE: 0; +FIP: 0; +FIS: 0,1,0,0,0,0,0,0;
+FLI: ""; +FLO: 1; +FLP: 0; +FMS: 0; +FNR: 0,0,0,0; +FNS: ""; +FPA: "";
+FPI: ""; +FPP: 0; +FPR: 8; +FPS: 1; +FPW: ""; +FRQ: 0,0; +FRY: 0;
+FSA: ""; +FSP: 0; +CMUX: 0,0,5,31,10,3,30,10,2;
+ATINITSTATE: 3925871435; !CMUX: 0,0,5,31,10,3,30,10,2; !SLVAL: ;
!SSMS: 0,,,""; !PCSTATE: 0; ~AUDMOD: 1; ~AUDPATH: 1; ~MICLVL: 0;
~SPKLVL: 0; ~ECHO: 0; ~STGLVL: 2; ~TONDUR: 300,200,100; ~TONMUT: 0;
~NAMLCK:

OK
AT+GCAP
+GCAP: +CIS707-A, CIS-856, +MS, +ES, +DS, +FCLASS

OK


73 Eric
Back to top
View user's profile
ammulder
EVDO Newbie


Joined: 29 Mar 2006
Posts: 8

PostPosted: Mon Apr 03, 2006 9:14 pm    Post subject: OS Upgrade Helped

I updated my laptop from SuSE 10.1 beta 8 to SuSE 10.1 beta 9, and now the chat scripts are working like you said -- the disconnect script shuts down the verizon indicator light and the connect script turns it back on again. I guess I won't fully trust it for another couple suspend/resumes and reboots, but so far so good. Smile

Thanks,
Aaron
Back to top
View user's profile
ammulder
EVDO Newbie


Joined: 29 Mar 2006
Posts: 8

PostPosted: Mon Apr 03, 2006 9:21 pm    Post subject: Oh, dear

OK, spoke too soon. About half the time, the shutdown script doesn't work for me. It just hangs for a while and I get something like this:

Terminating on signal 2
Connect time 3.0 minutes.
Sent 68668 bytes, received 449424 bytes.
Script /etc/ppp/ip-down started (pid 4984)
sent [LCP TermReq id=0x2 "User request"]
rcvd [LCP TermAck id=0x2]
Connection terminated.
timeout set to 30 seconds
expect (NO CARRIER)
alarm
Failed
disconnect script failed
Script /etc/ppp/ip-down finished (pid 4984), status = 0x0

I'm willing to try the commands you suggested, but I've never used minicom and I don't know how to get it to talk to /dev/ttyUSB0 and let me issue AT commands -- can you walk me through it?

Thanks,
Aaron
Back to top
View user's profile
ammulder
EVDO Newbie


Joined: 29 Mar 2006
Posts: 8

PostPosted: Tue Apr 18, 2006 8:23 am    Post subject: Update...

I updated to SuSE 10.1 RC 1.

Once again, I couldn't get the EVDO card to connect. All the commands were executed correctly, it just died at the end with NO CARRIER.

I tried turning the wireless power switch off and back on again, and then tried the EVDO connection again, and it worked.

So it seems like there's some kind of basic poweron command that's not happening in just the script by itself. the AT!PCSTATE=1 does not seem to do it. I did get things going in minicom, and when the connection was not working, I could run AT!PCSTATE=1 in minicom and it did not light up the little antenna light on the laptop and didn't make the connection work.

My modem did have slightly different output than yours to the AT&V command, but I didn't save it, so I'll post it next time I'm online without the Verizon connection. Smile
Back to top
View user's profile
tiwula
EVDO Newbie


Joined: 27 Jun 2006
Posts: 4

PostPosted: Wed Feb 07, 2007 4:25 pm    Post subject: Database Updates/Reinitializing the Card?

I have a notebook with Sierra Wireless MC5720/embedded. I run Linux only, not a dual boot system. My question is this....

I was talking with Verizon and the representative indicated that cards should be updated every 60 - 90 days. According to the representative, doing this updates the database and will lead to improved performance in some situations.

So - according to the representative, to update the card requires using VZAccess and reinitializing the card. At this point, the representative struggled a bit with the notion of not being able to simply download and run VZAccess....

So - in the case of my PCMCIA card, I can see doing this - not very convenient, but I can track down a Windows computer and reinitialize the card. In the case of the embedded product on a Linux-only notebook, this seems a little more challenging.

1) What is known about the need to update the card routinely? Is this recommended?
2) Any suggestions for how to deal with updating an embedded card on a Linux-only notebook?

I guess I could swap the disk out and install Windows on a spare disk, but not everybody has a spare disk kicking around. Feels a little like turning the house to unscrew the lightbulb....
Back to top
View user's profile
rkimbrell
EVDO Newbie


Joined: 14 Jun 2007
Posts: 1
Location: Bellevue, Nebraska

PostPosted: Thu Jun 14, 2007 3:35 pm    Post subject: Linux: Antenna power off/on for Sierra Wireless MC5720

I had the problem a few people mentioned above that the MC5720 wasn't transmitting or receiving in Linux (but was in WinXP). I fixed this problem by updating the sierra.c module. I was running sierra.c 1.0.5. At the Sierra Wireless site there's an updated module. You can find the site through Google with the search "sierra wireless at!pcinfo" without the quotes. For me it was the third line down - at sierrawireless.com.

I installed the module by downloading the file from the Sierra Wireless site, un-tar-ing it, cd-ing to the folder created by tar, and issuing "make" and "sudo make install" commands. After a reboot, the antenna light is on and I can contact Verizon.
Back to top
View user's profile
Display posts from previous:   
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum