Connecting a Linux box to Sprint PCS via a Samsung N400

From JoatWiki
Jump to: navigation, search

(4 Aug 2007) - I was killing time in Radio Shack this afternoon (my wife had gone into Fashion Bug) and I noticed that the SnapDialer cables were down to less than $20 so I decided to take a chance (luckily, I did NOT buy the accompanying software).

Thanks to Nate Carlson's page about his Sanyo SCP-4900, I was able to get online via my Samsung N400 in about a half hour's worth of reading man pages and tweaking the scripts. (see below for mine).

Note that /dev/usb/acm/0 applies to my Linux distribution. Read your boot logs to find out what device is chosen for the SnapDialer.

Create /etc/ppp/peers/sprint to contain:

 noauth
 connect "/usr/sbin/chat -v -f /etc/chatscripts/sprint"
 defaultroute
 usepeerdns
 /dev/usb/acm/0
 9600
 local
 novj


Create /etc/chatscripts/sprint to contain:

 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	12
 OK	ATD#777
 TIMEOUT	22
 CONNECT	""


To get the system to connect, type:

 pppd call sprint

You can tell a lot by tailing /var/log/messages while you do this.




Comments:

Leave a Comment

Personal tools