| View previous topic :: View next topic |
| Author |
Message |
boingolover EVDO Newbie
Joined: 15 Nov 2006 Posts: 3
|
Posted: Wed Nov 15, 2006 2:07 am Post subject: Pantech px-500 with linux |
|
|
Has anyone managed to get the pantech px-500 to work with Linux on sprint? I have followed various tutorials for getting other models of card to work, so far no luck. I am running ubuntu 6.06 with 2.6.17 kernel. I get a /dev/ttyACM0 device whenever I insert the card without having to do anything. I have set up some pppd scripts with the following (basically copied from some other sites mentioning how to get other evdo cards going):
/etc/ppp/peers/sprint:
| Code: | #the USB serial device of the EVDO PCMCIA card.
ttyACM0 # I have tried this with ttyUSB0 also
#your login information
user 10-digit-number@sprintpcs.com
230400 # speed
#debug
defaultroute # use the cellular network for the default route
usepeerdns # use the DNS servers from the remote network
-detach # keep pppd in the foreground
crtscts # hardware flow control
#lock # lock the serial port
noauth # don't expect the modem to authenticate itself
connect "/usr/sbin/chat -v -f /etc/ppp/peers/sprint-connect"
disconnect "/usr/sbin/chat -v -f /etc/ppp/peers/sprint-disconnect"
|
and /etc/ppp/peers/sprint-connect as:
| Code: |
TIMEOUT 120
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
'' 'ATZ'
'OK' 'AT&F0'
'OK' 'ATE0v1'
'' 'AT+CSQ'
'OK' 'ATDT#777'
'CONNECT'
|
I have also tried modifying the 'sprint' script to use ttyUSB0 and also doing the following:
rmmod cdc_acm
modprobe usbserial vendor=0x106c product_id=0x3702
(the latter two arguments to modprobe I gleaned from /proc/bus/usb/devices)
In both cases (ttyACM0 and ttyUSB0), it gets to the point where it's finished the chat script and pppd is waiting for dhcp info. It communicates with the modem up to this point, gets the CONNECT string then hangs. Any thoughts? Here is an example output from my logs:
| Code: |
Nov 15 01:39:12 nunya pppd[5147]: pppd 2.4.4b1 started by root, uid 0
Nov 15 01:39:13 nunya chat[5150]: timeout set to 120 seconds
Nov 15 01:39:13 nunya chat[5150]: abort on (BUSY)
Nov 15 01:39:13 nunya chat[5150]: abort on (NO ANSWER)
Nov 15 01:39:13 nunya chat[5150]: abort on (NO CARRIER)
Nov 15 01:39:13 nunya chat[5150]: send (ATZ^M)
Nov 15 01:39:13 nunya chat[5150]: expect (OK)
Nov 15 01:39:13 nunya chat[5150]: ^M
Nov 15 01:39:13 nunya chat[5150]: OK
Nov 15 01:39:13 nunya chat[5150]: -- got it
Nov 15 01:39:13 nunya chat[5150]: send (AT&F0^M)
Nov 15 01:39:13 nunya chat[5150]: expect (OK)
Nov 15 01:39:13 nunya chat[5150]: ^M
Nov 15 01:39:13 nunya chat[5150]: AT&F0^M^M
Nov 15 01:39:13 nunya chat[5150]: OK
Nov 15 01:39:13 nunya chat[5150]: -- got it
Nov 15 01:39:13 nunya chat[5150]: send (ATE0v1^M)
Nov 15 01:39:13 nunya chat[5150]: send (AT+CSQ^M)
Nov 15 01:39:13 nunya chat[5150]: expect (OK)
Nov 15 01:39:13 nunya chat[5150]: ^M
Nov 15 01:39:13 nunya chat[5150]: ATE0v1^M^M
Nov 15 01:39:13 nunya chat[5150]: OK
Nov 15 01:39:13 nunya chat[5150]: -- got it
Nov 15 01:39:13 nunya chat[5150]: send (ATDT#777^M)
Nov 15 01:39:13 nunya chat[5150]: expect (CONNECT)
Nov 15 01:39:13 nunya chat[5150]: ^M
Nov 15 01:39:13 nunya chat[5150]: ^M
Nov 15 01:39:13 nunya chat[5150]: 31, 99^M
Nov 15 01:39:13 nunya chat[5150]: ^M
Nov 15 01:39:13 nunya chat[5150]: OK^M
Nov 15 01:39:15 nunya chat[5150]: ^M
Nov 15 01:39:15 nunya chat[5150]: CONNECT
Nov 15 01:39:15 nunya chat[5150]: -- got it
Nov 15 01:39:15 nunya chat[5150]: send (^M)
Nov 15 01:39:15 nunya pppd[5147]: Serial connection established.
Nov 15 01:39:15 nunya pppd[5147]: Using interface ppp0
Nov 15 01:39:15 nunya pppd[5147]: Connect: ppp0 <--> /dev/ttyACM0
|
at which point it hangs until timeout.
** Update -- I thought it might be relevant to mention that this card has been initialized under windows and it works there. Also, I ahve tried this card with both the original firmware and also with the updated firmware for rev a with the same results. Also, in the sprint script above, I have replaced the "user" line with both the phone number of my powervision account and also the <userid>@sprintpcs.com that I pulled from the diagnostic screen of the sprint connection manager under windows with the exact same results. I'm guessing though that this userid is irrelevant however, as it was irrelevant when I used to use pppd to connect to through my phone with the usb cable.
Nathan |
|
| Back to top |
|
 |
mvallaly EVDO Newbie
Joined: 16 Nov 2006 Posts: 2
|
Posted: Thu Nov 16, 2006 6:23 pm Post subject: |
|
|
Yup ive had the card working for a couple weeks now.. In fact im writing this right now from the train (PX-500 + SprintPCS)
This should get you started.. There are only really two files you need to create / play with.
/etc/ppp/peers/Sprint_EVDO
| Code: |
noauth
# Connection Script
connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/sprint-evdo"
defaultroute
replacedefaultroute
usepeerdns
/dev/ttyACM0
230400
local
novj
|
/etc/ppp/chatscripts/sprint-evdo
| Code: |
TIMEOUT 5
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
TIMEOUT 3
OK ATE0V1&F&D2&C1S0=0
TIMEOUT 3
OK ATS0=0
TIMEOUT 3
OK ATDT#777
TIMEOUT 20
CONNECT ""
|
So after all that is in place you would start the connection up with something similar to this:
| Code: |
/usr/sbin/pppd call Sprint_EVDO updetach
|
Sometimes it takes a good 5 seconds or so for the conneciton to establish.
Hopefully this helps some..
-Mike |
|
| Back to top |
|
 |
boingolover EVDO Newbie
Joined: 15 Nov 2006 Posts: 3
|
Posted: Fri Nov 17, 2006 1:45 pm Post subject: |
|
|
first off, thanks for the reply!
and now some questions...
could you tell me what kernel version you're using?
also, it appears that you're using the cdc_acm module, no? If yes, did you give any special options to modprobe?
I still seem to be having the same issues, though I will have to wait until I'm stationary to check it again. I'm traveling through some rural areas at the moment, and though it seems to be working from winders so far I have not been able to get an IP address from linux.
Thanks again! |
|
| Back to top |
|
 |
mvallaly EVDO Newbie
Joined: 16 Nov 2006 Posts: 2
|
Posted: Sat Nov 18, 2006 12:17 am Post subject: |
|
|
Sure.. I am running Debian (Unstable). Kernel 2.6.18-1-686.
You will need both cdc_acm & ohci_hcd modules loaded.. The PX-card seems to have an OHCI compatable USB bridge internally off of which hangs the CDC serial port (ports if I could get the D-channel (control) to work properly)
No module options, hotplug is doing the loading/unloading for me right now.
After inserting the card you should get some nice dmesg output.
| Code: | pccard: CardBus card inserted into slot 0
PCI: Enabling device 0000:05:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:05:00.0 to 64
ohci_hcd 0000:05:00.0: OHCI Host Controller
ohci_hcd 0000:05:00.0: new USB bus registered, assigned bus number 6
ohci_hcd 0000:05:00.0: irq 169, io mem 0xaa000000
usb usb6: configuration #1 chosen from 1 choice
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 1 port detected
PCI: Enabling device 0000:05:00.1 (0000 -> 0002)
ACPI: PCI Interrupt 0000:05:00.1[B] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:05:00.1 to 64
ohci_hcd 0000:05:00.1: OHCI Host Controller
ohci_hcd 0000:05:00.1: new USB bus registered, assigned bus number 7
ohci_hcd 0000:05:00.1: irq 169, io mem 0xaa001000
usb usb7: configuration #1 chosen from 1 choice
hub 7-0:1.0: USB hub found
hub 7-0:1.0: 1 port detected
ohci_hcd 0000:05:00.0: wakeup
ohci_hcd 0000:05:00.0: wakeup
usb 6-1: new full speed USB device using ohci_hcd and address 2
usb 6-1: configuration #1 chosen from 1 choice
cdc_acm 6-1:1.0: ttyACM0: USB ACM device |
lspci should give you some additional USB contollers:
| Code: |
05:00.0 USB Controller: NEC Corporation USB (rev 43)
05:00.1 USB Controller: NEC Corporation USB (rev 43)
|
and lsusb you should see a devices something like this:
| Code: | | Bus 006 Device 002: ID 106c:3702 Curitel Communications, Inc. |
Cheers!
-Mike |
|
| Back to top |
|
 |
boingolover EVDO Newbie
Joined: 15 Nov 2006 Posts: 3
|
Posted: Sun Nov 19, 2006 1:01 pm Post subject: |
|
|
| from an old configuration I had 'silent' enabled in /etc/ppp/options , disabled that option and it and it finally works like a champ. thanks again for all your help! |
|
| Back to top |
|
 |
SonWon EVDO Newbie
Joined: 24 Dec 2006 Posts: 3
|
Posted: Sun Dec 24, 2006 2:29 pm Post subject: |
|
|
Help, please.
I followed the examples here and I can get connected however the download speed is really slow compared to windows? And the download is slower than the upload? I am using dslreports.com to test.
Also, it keeps dropping the connection?
I am using Ubuntu Dapper and have the Pantech PX-500 card, rev A, activated and updated with windows.
My test speeds are 145.2 Kbps, down. I think the card is not running in EVDO mode?
Thank you, |
|
| Back to top |
|
 |
whwillisiv EVDO Newbie
Joined: 02 Jan 2007 Posts: 1
|
Posted: Tue Jan 02, 2007 4:16 am Post subject: |
|
|
i also have ubuntu 6.06 and a px-500
i have tried the advice above but still cannot connect
after creating the recommended files
"/usr/sbin/pppd/ call Sprint_EVDO updetach" returns: Connect script failed
any ideas? |
|
| Back to top |
|
 |
SonWon EVDO Newbie
Joined: 24 Dec 2006 Posts: 3
|
Posted: Tue Jan 02, 2007 10:38 am Post subject: |
|
|
Make sure you init the card in Windows first.
I destroyed the scripts I was using from a Linux reload when I upgraded to Edgy, sorry. I am also switching to the Novatel S720 card since it is supported in the Linksys WRT54G3G-ST router.
Post the scripts you are using and I'll look for problems but I am no expert at this. |
|
| Back to top |
|
 |
RuralGuy EVDO Fledgling
Joined: 05 Jan 2007 Posts: 16 Location: Southern Wisconsin
|
Posted: Sun Jan 07, 2007 10:10 am Post subject: |
|
|
See this thread here:
http://www.evdoforums.com/thread4381.html
usbserial.c needs patching, and I wouldn't use the cdc-acm driver as it's always slower than usbserial with the Pantech card. I have the cdc-acm driver disabled in my kernel config and only use the generic usbserial.
I have mine set up to dial on demand in Gentoo linux. This is the /etc/conf.d/net config I use (just the ppp0 section):
| Code: | # PPP
config_ppp0=( "ppp" )
link_ppp0="/dev/ttyUSB0"
#gateway=
pppd_ppp0=(
"debug" # Enables syslog debugging
"noauth" # Do not require the peer to authenticate itself
"defaultroute" # Make this PPP interface the default route
"usepeerdns" # Use the DNS settings provided by PPP
# On demand options
"demand" # Enable dial on demand
"idle 300" # Link goes down after 5 mins of inactivity
"192.168.0.1:10.112.112.113" # Phony IP address for 2nd
"ipcp-accept-remote" # Accept the peers idea of remote address
"ipcp-accept-local" # Accept the peers idea of local address
"holdoff 3" # Wait 3 seconds after link dies before re-starting
# Compression options - use these to completely disable compression
noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp
# Dial-up settings
"lock" # Lock serial port
"921600" # Set the serial port baud rate (irrelevant for USB)
"modem crtscts" # Enable hardware flow control
)
# Dial-up PPP users need to specify at least one telephone number
phone_number_ppp0=( "#777" )
# Login chat script
chat_ppp0=(
'ABORT' 'BUSY'
'ABORT' 'ERROR'
'ABORT' 'NO ANSWER'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'TIMEOUT' '5'
'' 'ATE0V1&F'
'OK' 'ATE0V1&D2&C1S0=0'
'OK' 'ATDT\T'
'TIMEOUT' '10'
'CONNECT' ''
)
|
Gentoo loads these scripts on startup. I don't know what Ubuntu does, but at the very least you can copy the chat script over to see if it works any better. The options also are the same as they would be for setting up the peers script for pppd. (Since that is what gets called when Gentoo sees this config.) |
|
| Back to top |
|
 |
eriklane EVDO Newbie
Joined: 06 Feb 2007 Posts: 1
|
Posted: Tue Feb 06, 2007 2:03 pm Post subject: Sprint PX-500 working great on Fedora Core 6 |
|
|
Hey folks,
Just thought I'd add to the thread for those who make their way here.
I'm running a new install of FC6 on a Dell Latitude D600. The kernel modules were already in place.
I added the two files above but had to comment out the line about "replacedefaultroute", found in another forum that's a SuSe specific feature that's not an option for the rest of us and the pppd folks don't expect support for that feature in the future.
I also commented out the 'usepeerdns' line and use my own entries in resolv.conf. The DNS was setting up properly according to the setup but then not resolving names, and there you go.
I didn't have any speed problems. I downloaded VMware Workstation averaging 75KBps. Took about 21 minutes.
Thanks for the help. _________________ Erik |
|
| Back to top |
|
 |
BlargMaN EVDO Newbie
Joined: 27 Jan 2007 Posts: 3
|
Posted: Fri Feb 09, 2007 10:33 pm Post subject: kernel config |
|
|
can anyone tell me the kernel options I need to set for the px-500 to work properly?
I do not get anything showing up in my /dev/ directory. Can someone PLEASE HELP!?!? |
|
| Back to top |
|
 |
ladynikon EVDO Newbie
Joined: 11 Mar 2007 Posts: 3
|
Posted: Sun Mar 11, 2007 6:36 pm Post subject: |
|
|
Hey,
I got my card working perfectly. Although I am also having speed issues.
To anyone else who may be having connection issues. In ubuntu that is.. I had to disable all other devices to get it to run properly. But it works  _________________ Pantech PX-500 |
|
| Back to top |
|
 |
emericon11 EVDO Newbie
Joined: 04 Apr 2007 Posts: 7
|
Posted: Wed Apr 04, 2007 2:02 pm Post subject: |
|
|
Thanks for the info, I have also (almost) got the card working...
Under Windows in the NJ/NYC area I seem to get one of three IP domain addresses assigned: 120.x.x.x, 70.x.x.x, or 68.x.x.x - usually a 70. the 70 and 68 domains work fine, but the 120 domain doesn't - it connects but all network calls time out. Not really a problem, I just disconnect and reconnect until I get assigned a 70 or 68 address.
Under linux, all I ever get is a 120.x.x.x address, and all of the network calls time out. Anybody got any ideas as to what I can do?
I'm running Ubuntu Easy Eft on a Lenovo T60p and the PX-500 card... |
|
| Back to top |
|
 |
rickdog EVDO Newbie
Joined: 01 May 2007 Posts: 1
|
Posted: Mon May 14, 2007 4:20 am Post subject: |
|
|
I have my Toshiba A45-S150 running with my Pantech PX500. I used a howto from ubuntuforums (.org) that explained how to set it up using wvdial. Worked perfectly. Being a newbie here, I can't post the link, however you can search the forum for "wvdial, evdo" and it should be the first or one of the first threads that come up (#343989). Check it out!
Feisty on:
--Toshiba A45-S150, P4 2.4GHz, 2GB, 160GB Hitachi, Pantech PX500 Sprintpcs
--Sony Vaio PCV-RX650, P4 1.6GHz, 1GB, 320GB Maxtor, 80GB original, Geforce 6600, Acer 22" widescreen (sweeeeet) _________________ Linux Rules!!!! |
|
| Back to top |
|
 |
mgayda EVDO Newbie
Joined: 27 May 2007 Posts: 2
|
Posted: Tue May 29, 2007 8:44 pm Post subject: Ubuntu 7.04 |
|
|
Hello,
Ubuntu 7.04 with wvdial works like a charm following the guide that is posted on sprintpcs website. I can't get KPPP to work though. I've played with all the configs I could think of my card was updated on a vista laptop using the latest FW upgrade before it found it's rightful place in my nix machine.
Anyway 3 cheers I'm getting 1200 DL compared to buggy vista connection manager capping @ 600.
PX500 - DELL - UBUNTU 7.04 I have cut the cord!!! |
|
| Back to top |
|
 |
|