Author Topic: C3000 Usb Host: Dial-up Via Sprint Pcs Cell Phone  (Read 7499 times)

DreamTheater

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • http://
C3000 Usb Host: Dial-up Via Sprint Pcs Cell Phone
« on: January 04, 2005, 08:05:38 am »
I tested this with my C3000 (ROM 1.01 JP) with Sprint PCS SANYO VM4500

[What's you need]
 - USB mini-A(male) to USB A (female) cable.
    ex.) http://www.goldxproducts.com/cable/qu.htm
    or
         http://catalog.blackbox.com/BlackBox/Templ.../mainscreen.asp

 - USB cable for your cell phone (Future dial)
http://www.futuredial.com/Products/cables/P_cables.htm



[Procedures]
1) Create the device /dev/ttyACM0.
Code: [Select]
# mknod /dev/ttyACM0 c 166 0  
2) Go to setup menu, create a new dial-up access point.
    - Choose IrDA dial-up
    - Phone number is #777
    - Username is your SprintPCS userid.
    - Password is your SprintPCS password.
    - Leave the 'additional modem initialization' blank.
    - save it.
NOTE: Mine is pure Japanese version, so I don't know exact acronym used in English converted version but should be very similar.

3) Go to /etc/ppp/peers and find a file something like IRDAxxxxxxxxx that is the one network setup wazard just created.  Modify the 2nd line of the IRDAxxxxxxxxx.

Code: [Select]
noipdefault
/dev/ttyACM0 115200
connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "ATDT#777" CONNECT "\\d\\d"'
crtscts
lock
modem
user "xxxxxxxx"
defaultroute
mtu 576
mru 576
connect-delay 1000
remotename IRDAxxxxxxxxx

4) Now you can dial from the network connection.

5) If it doesn't work well, check /dev/shm/tmp/qpe-pppd-log  to see what's going on.  In successful case, it looks like this.....
Code: [Select]
Dec 31 09:18:56 localhost pppd[2554]: pppd 2.4.0 started by root, uid 0
Dec 31 09:18:57 localhost chat[2562]: abort on (NO CARRIER)
Dec 31 09:18:57 localhost chat[2562]: abort on (NO DIALTONE)
Dec 31 09:18:57 localhost chat[2562]: abort on (BUSY)
Dec 31 09:18:57 localhost chat[2562]: send (ATDT#777^M)
Dec 31 09:18:57 localhost chat[2562]: expect (CONNECT)
Dec 31 09:19:01 localhost chat[2562]: ATDT#777^M^M
Dec 31 09:19:01 localhost chat[2562]: CONNECT
Dec 31 09:19:01 localhost chat[2562]:  -- got it
Dec 31 09:19:01 localhost chat[2562]: send (\d\d^M)
Dec 31 09:19:03 localhost pppd[2554]: Serial connection established.
Dec 31 09:19:03 localhost pppd[2554]: using channel 2
Dec 31 09:19:03 localhost pppd[2554]: Using interface ppp0
Dec 31 09:19:03 localhost pppd[2554]: Connect: ppp0 <--> /dev/ttyACM0
Dec 31 09:19:04 localhost pppd[2554]: sent [LCP ConfReq id=0x1 ]
Dec 31 09:19:04 localhost pppd[2554]: Timeout 0x20084bc:0x203b440 in 3 seconds.
Dec 31 09:19:04 localhost pppd[2554]: rcvd [LCP ConfReq id=0x96 ]
Dec 31 09:19:04 localhost pppd[2554]: lcp_reqci: returning CONFACK.
Dec 31 09:19:04 localhost pppd[2554]: sent [LCP ConfAck id=0x96 ]
Dec 31 09:19:04 localhost pppd[2554]: rcvd [LCP ConfRej id=0x1 ]
Dec 31 09:19:04 localhost pppd[2554]: Untimeout 0x20084bc:0x203b440.
Dec 31 09:19:04 localhost pppd[2554]: sent [LCP ConfReq id=0x2 ]
Dec 31 09:19:04 localhost pppd[2554]: Timeout 0x20084bc:0x203b440 in 3 seconds.
Dec 31 09:19:04 localhost pppd[2554]: rcvd [LCP ConfAck id=0x2 ]
Dec 31 09:19:04 localhost pppd[2554]: Untimeout 0x20084bc:0x203b440.
Dec 31 09:19:04 localhost pppd[2554]: sent [IPCP ConfReq id=0x1 ]
Dec 31 09:19:04 localhost pppd[2554]: Timeout 0x20084bc:0x203b6a0 in 3 seconds.
Dec 31 09:19:05 localhost pppd[2554]: sent [CCP ConfReq id=0x1 ]
Dec 31 09:19:05 localhost pppd[2554]: Timeout 0x20084bc:0x203b7a0 in 3 seconds.
Dec 31 09:19:05 localhost pppd[2554]: rcvd [LCP DiscReq id=0x97 magic=0x72a0deea]
Dec 31 09:19:05 localhost pppd[2554]: rcvd [IPCP ConfReq id=0x98 ]
Dec 31 09:19:05 localhost pppd[2554]: ipcp: returning Configure-ACK
Dec 31 09:19:05 localhost pppd[2554]: sent [IPCP ConfAck id=0x98 ]
Dec 31 09:19:05 localhost pppd[2554]: rcvd [IPCP ConfRej id=0x1 ]
Dec 31 09:19:05 localhost pppd[2554]: Untimeout 0x20084bc:0x203b6a0.
Dec 31 09:19:05 localhost pppd[2554]: sent [IPCP ConfReq id=0x2 ]
Dec 31 09:19:05 localhost pppd[2554]: Timeout 0x20084bc:0x203b6a0 in 3 seconds.
Dec 31 09:19:05 localhost pppd[2554]: rcvd [LCP ProtRej id=0x99 80 fd 01 01 00 07 15 03 2f]
Dec 31 09:19:05 localhost pppd[2554]: Untimeout 0x20084bc:0x203b7a0.
Dec 31 09:19:05 localhost pppd[2554]: rcvd [IPCP ConfNak id=0x2 ]
Dec 31 09:19:05 localhost pppd[2554]: Untimeout 0x20084bc:0x203b6a0.
Dec 31 09:19:05 localhost pppd[2554]: sent [IPCP ConfReq id=0x3 ]
Dec 31 09:19:05 localhost pppd[2554]: Timeout 0x20084bc:0x203b6a0 in 3 seconds.
Dec 31 09:19:05 localhost pppd[2554]: rcvd [IPCP ConfNak id=0x3 ]
Dec 31 09:19:05 localhost pppd[2554]: Untimeout 0x20084bc:0x203b6a0.
Dec 31 09:19:05 localhost pppd[2554]: sent [IPCP ConfReq id=0x4 ]
Dec 31 09:19:05 localhost pppd[2554]: Timeout 0x20084bc:0x203b6a0 in 3 seconds.
Dec 31 09:19:05 localhost pppd[2554]: rcvd [IPCP ConfNak id=0x4 ]
Dec 31 09:19:05 localhost pppd[2554]: Untimeout 0x20084bc:0x203b6a0.
Dec 31 09:19:05 localhost pppd[2554]: sent [IPCP ConfReq id=0x5 ]
Dec 31 09:19:05 localhost pppd[2554]: Timeout 0x20084bc:0x203b6a0 in 3 seconds.
Dec 31 09:19:05 localhost pppd[2554]: rcvd [IPCP ConfAck id=0x5 ]
Dec 31 09:19:05 localhost pppd[2554]: Untimeout 0x20084bc:0x203b6a0.
Dec 31 09:19:05 localhost pppd[2554]: ipcp: up
Dec 31 09:19:05 localhost pppd[2554]: local  IP address 68.241.97.224
Dec 31 09:19:05 localhost pppd[2554]: remote IP address 68.28.160.194
Dec 31 09:19:05 localhost pppd[2554]: Script /etc/ppp/ip-up started (pid 2574)
Dec 31 09:19:05 localhost pppd[2554]: Script /etc/ppp/ip-up finished (pid 2574), status = 0x0

Note that you may need to re-do step 3) for a few times.  It looks every time something has changed in the wizard, it overwrites the entire file (IRDAxxxxxxxxx).

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
C3000 Usb Host: Dial-up Via Sprint Pcs Cell Phone
« Reply #1 on: February 17, 2005, 06:33:06 pm »
thanks it worked on my 6k. 6k stock rom come with the acm.o precompiled
I used my old Samsung A460 to connect to my school free isp through the iRiver usb host cable. I have to add the wirless web service ($5/per month) into my SpringPCS plan (mine is not Vision). Then all my data calling to my school isp is charged as normal phone call minutes, which means I can have unlimited internet connection at night and weekends, using free nights and weekends minutes as long as the battery lasts. If I don't add the wireless web service, every minutes will be counted as additional wireless web minutes and my phone bill will go crazy.  By the same logic if you dont have a free dial-up isp from school or work, you can also buy a cheap dial-up service (~$10/ per month) from some isp to have wireless internet connection to your z. The key is you need a 10 digits US number to call to.  Sorry, I don't know Vision plan's pricing and I know it's not the best/fastest option out there. But this works for me the best since I have a not-available-anymore cheap plan and a volume bases discount from sprint. Speed is like 14k modem when i'm using this connecting to my PC, but seems ok for the zaurus.

Quote
# mknod /dev/ttyACM0 c 166 0
every time I reboot, I lost the node. so have to type this line again.

Quote
- Phone number is #777
- Username is your SprintPCS userid.
- Password is your SprintPCS password.
- Leave the 'additional modem initialization' blank.

-Phone number is myschool free ISDN phone number
- Username is myschool account ID
- Password is myschool password.
we don't have the last option on 6k

I have to clear up my wifi connection first to let the irda connection show up in the connection list though. Then I import my wifi back, both shows up ok. thanks for making my day.
« Last Edit: February 17, 2005, 07:26:11 pm by xjqian »
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
C3000 Usb Host: Dial-up Via Sprint Pcs Cell Phone
« Reply #2 on: February 17, 2005, 11:02:02 pm »
this question is not related to z. But is Vision plan already includes the old terminology "wireless web" by default? You don't get additionally charged to use your z with your sprintPCS vision phone? All the miniutes used counted as calling minutes in your plan?

I just can't find enough information on SprintPCS' website. That #777 number you're calling sounds like Vision includes the data transfer in their plan. But I talked to a sprint CSR, she said sprint don't have any data plan except those PCMCIA modem cards. I'm not familiar about Vision plan. Somebody helps me out?
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc

DreamTheater

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • http://
C3000 Usb Host: Dial-up Via Sprint Pcs Cell Phone
« Reply #3 on: February 17, 2005, 11:13:23 pm »
Glad to hear it worked on 6000 too.  
Regarding /dev/ttyACM0 thing, sorry I also noticed this but haven't reported here.
My solution is adding that line into /etc/rc.d/rc.local

If you don't want to touch that file, the other solution I can think of is to create hot-plug detection script for your Sprint phone just like I did for usb GPS.

https://www.oesf.org/forums/index.php?showtopic=9843

Hope this helps.

DreamTheater

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • http://
C3000 Usb Host: Dial-up Via Sprint Pcs Cell Phone
« Reply #4 on: February 17, 2005, 11:27:32 pm »
Hello xjqian,

I am no expert of PCS Vision, but what happened in my case is I was once using Vision about a year ago and for just a few months.  Then, I disabled Vision plan because I couldn't justify that extra monthly fee only to get picture files from cell phone built-in camera.  Instead, FutureDial's cable and software work for me.  The cell phone's built-in Netfront browser was not so attractive to me mainly because of its slow speed.
Anyway, therefore I had a PCS Vision userid and passwd.  I tried this same userid and passwd along with #777 number and it still worked.  I wondered if it re-enable my Vision plan automatically, but actually it didn't happen.  That is good because I don't wanna Vision plan but please please don't tell anyone.  

BTW, I got Snap Media software with cable but not a dialing software.  So, I can't dial into Vision network from Windows but I can from my C3000, which is awesome.

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
C3000 Usb Host: Dial-up Via Sprint Pcs Cell Phone
« Reply #5 on: February 18, 2005, 12:53:54 am »
thanks, Dreamtheatre. That's what I suspected. Using the sprintpcs phone as a modem is not an officially supported option from sprintpcs. When i was in the store I didn't push the CSR for an answer to my inquiry, as I can tell from her face this is total out of earth for her. Well, seems there's no reason for me to upgrade to vision. Color screen and camera on phone are totally useless to me. The only reason I might upgrade in the future is the BlueTooth. But for now I don't want to pay $20 more per month just for that. fyi, I had a $30 obsolete minimum sprint pcs plan + $5 wireless web. After an 25% discount, I only need to shell out $30 per month (tax included), which i think is the lowest i can get nowadays.

well, how's the speed with your "Vision" connection?

Thanks again, this is one of things I dreamed of since the day I bought my 6k.
« Last Edit: February 18, 2005, 01:13:44 am by xjqian »
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
C3000 Usb Host: Dial-up Via Sprint Pcs Cell Phone
« Reply #6 on: February 19, 2005, 10:14:03 pm »
Quote
Regarding /dev/ttyACM0 thing, sorry I also noticed this but haven't reported here.
My solution is adding that line into /etc/rc.d/rc.local
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67625\"][{POST_SNAPBACK}][/a][/div]

Do you mean /etc/rc.d/rc.modules? put the line in rc.local don't work for me
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc

DreamTheater

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • http://
C3000 Usb Host: Dial-up Via Sprint Pcs Cell Phone
« Reply #7 on: February 21, 2005, 03:05:32 am »
Quote
Quote
Regarding /dev/ttyACM0 thing, sorry I also noticed this but haven't reported here.
My solution is adding that line into /etc/rc.d/rc.local
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67625\"][{POST_SNAPBACK}][/a][/div]

Do you mean /etc/rc.d/rc.modules? put the line in rc.local don't work for me
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67898\"][{POST_SNAPBACK}][/a][/div]

No.  It should be added to /etc/rc.d/rc.local
Then, we also need to add sym link.

 # cd /etc/rc.d/rc5.d
 # ln -s ../rc.local S49local