*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: [1] 2
Print
Author Topic: use phone as modem  (Read 7129 times)

use phone as modem

robbernews
Contributor
*
Posts: 40


February 09, 2011, 10:50:36 AM

Can someone tell me how, definitively?  I'd be interested to use it from the Gnome desktop, primarily, but also via Sugar.
Particulars:
XO Build:  860;  Sugar:  0.84.31;  Firmware:  Q2E45;  Wireless FW:  5.110.22.p23
Gnome:  2.26.3 

Phone:  Nokia 5230 Nuron, (has USB cable)

ps:  I can connect to the net via BT thru phone with my MacBook Pro, easy.
Logged

#1 Re: use phone as modem

robbernews
Contributor
*
Posts: 40


February 09, 2011, 11:47:55 AM

I'm trying to follow directions on this page:

http://wiki.laptop.org/go/Modem#XO_Internet_Connectivity_using_GSM_phone

but the section "XO Internet Connectivity using Dialup modem" sez to type the command
ls-l.
Should that be :
ls -l
instead?
Then, where it says to type in:
wvdialconf  /etc/wvdial.conf
I get back "bash: wvdialconf: command not found"
Where's it going wrong?
Logged

#2 Re: use phone as modem

robbernews
Contributor
*
Posts: 40


February 09, 2011, 12:34:25 PM

Further down in troubleshooting, found out I needed to install wvdialconf.  Which I did.

But now, at the end I get "no modem was detected" and "is it in use..." (I don't think so) and "Did you configure it properly with setserial?" (don't know what that means)

Any help here?
Logged

#3 Re: use phone as modem

Dinky
Senior Contributor
**
Posts: 238


February 09, 2011, 05:39:45 PM

Do the first part.
Connect and power on modem.  Generally all connections while power is off.  Power on modem and then XO.  (may have to change sequence)
Make sure ttyUSB0 is in  /dev     (ls -l)   .  This device will not show up if a device (modem) is not found on USB port.

And: 3. You can run sudo dmesg|grep –i ttyUSB to confirm the driver is loaded

If found, then try wvdialconf     .   What's in /etc/wvdial.conf  ?  

Finally, look at the troubleshooting section near the end of the article:

[edit] Troubleshooting
In case you receive output Cannot open /dev/ttyUSB0: Device or resource busy , you should run kill -9 -1 on XO to kill all services utilizing modem.

I don't have a modem, but these are general steps for using a device on USB.
« Last Edit: February 09, 2011, 05:54:05 PM by Dinky » Logged

#4 Re: use phone as modem

robbernews
Contributor
*
Posts: 40


February 09, 2011, 09:03:08 PM

First off-thank you for the help, I do appreciate your time.  But I'm way new to all this Linux stuff and therefore pretty confused.  You say "do the first part" and then say to power on the modem (phone?) then the xo.  So do I do the first part , then power off the xo, then power on the phone and the xo again?  Told you about the confusion, pardon me...
So I do this:

#dmesg
#dmesg | grep USB or #dmesg |grep tty
cd /dev
ls-l  (except I do ls -l)

...at this point, I don't see anything that says "ttyUSB0" at the ends of a bunch of lines of output.

This part of your post totally loses me, sorry:

And: 3. You can run sudo dmesg|grep –i ttyUSB to confirm the driver is loaded
If found, then try wvdialconf     .   What's in /etc/wvdial.conf  ?

Is there some proper protocol to end a "su" terminal session?  or do I just stop the terminal activity?
Logged

#5 Re: use phone as modem

Dinky
Senior Contributor
**
Posts: 238


February 10, 2011, 09:30:38 AM

The wiki says just plug your modem in; however, I suggested starting with all powered off and then plug in. Power on modem and let it finish its startup.  Power on the XO.  Sometimes the reverse order works (power up XO and then power up USB equipment).

Look to see if the XO found the ttyUSB0 file by changing to the "dev" directory (cd /dev)
and listing the files ( ls -l    ,or    ls -l tty*   ,or    ls -l | less      type q to stop if you use "less").

If the XO did not generate ttyUSB0 (i.e., it is not in /dev directory) then look at dmesg log file to see reasons why (become super user by using su in Terminal Activity; the the command dmesg | grep -i ttyUSB0  will look for any lines in dmesg log file that refers to ttyUSB0). You can stop Terminal Activity in the normal way ( tool bar>activity and stop in top right hand corner).  Note that the # is not part of the "dmesq" command it. It is a character to make the line a comment line (it's an explanation).  My post just quoted this from the wiki article under troubleshooting section.

If you found ttyUSB0 in the directory /dev, then try the wvdialconf command (see article) and look to see what is in the file that it creates (per article), which is /etc/wvdial.conf  .  I typical would use:     less /etc/wvdial.conf       ,or you can use the cat command. Use q to quit if you use "less" .

Next, refer to instructions in the section of the wiki article that might apply to your modem/phone.

These are general instructions for a USB device and please refer to the article for specific instructions for the modem in the USB port.
« Last Edit: February 10, 2011, 09:43:10 AM by Dinky » Logged

#6 Re: use phone as modem

robbernews
Contributor
*
Posts: 40


February 10, 2011, 11:08:39 AM

Thanks for the clarification.  Here's some of the IMPORTANT stuff I learned so far:
Don't include     #        at the beginning of a command.
it's        ls -l          not       ls-l (yep)
First plug in the phone, THEN power up the XO, THEN power on the phone.  Now I see a new icon in he frame lower right, "Wireless Modem".  At this point, I assume it may connect with the setting I put in the Modem Configuration section of My Settings, but it does not.  (I put in Number, *99#, as I have on the MacBook, APN and PUK, which I got from my provider.  Just those, no Username, Password or PIN, because I don't think I have those.
But let's cut to the chase:
I think the XO now knows of my modem, it found a USB modem on      /dev/ttyACM0  Now when I try the       wvdial      command, it cannot get info for serial port, then "sending ATZ, OK", then sending some other stuff, OK", then "Modem initialized", then "Configuration does not specify a valid phone #, login name, password.  I need to EDIT the file      /etc/wvdial.conf      don't I.  Wish I knew how...
I also might reboot the XO after I plug in the phone, then power the phone and see if the icon comes back in the frame, and maybe I can connect based on the settings I put in the Modem Configuration.
Logged

#7 Re: use phone as modem

Dinky
Senior Contributor
**
Posts: 238


February 10, 2011, 09:33:34 PM

I had not looked at the new My Settings>Modem Configuration in new software release 10.1.3

It looks like the /etc/wvdial.conf file (noted that this is for 3G network)

Will have to try to find a manual for 10.1.3   !!

I found this article:

http://wiki.laptop.org/go/10.1.3/Testing  under section:
Connectivity: Different Internet connections

Says:  3G USB       XO1 (does require dummy entries an user and password fields)

Maybe a dummy phone number is also need  Huh?

This was also in the earlier release 10.1.1:

3G and GSM modems
When a USB wireless modem is attached, it can be configured and used for internet access:

a new Modem Configuration icon is in My Settings,
when a USB wireless modem is inserted, an icon appears in the Frame.
« Last Edit: February 10, 2011, 10:40:00 PM by Dinky » Logged

#8 Re: use phone as modem

robbernews
Contributor
*
Posts: 40


February 10, 2011, 10:44:24 PM

"have you run:               wvdialconf  /etc/wvdial.conf"
Yes.  Here's the output:

Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Nokia
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

"Then you can try          wvdial"
...and that's when I get this:

[root@xo-11-66-cc dev]# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Configuration does not specify a valid phone number.
--> Configuration does not specify a valid login name.
--> Configuration does not specify a valid password.

Fixin' to be workin' the      vi        thing now...

Logged

#9 Re: use phone as modem

Dinky
Senior Contributor
**
Posts: 238


February 10, 2011, 10:58:34 PM

note, I modified the earlier post.  Please look at the edits in the previous post.

You need dummy user and password.

I am still stuck on 8.2 and had not taken a careful look at 10.1.3    Roll Eyes

Looks like your modem is connecting ok (it found the need initialization sequence).  Serial comment probably not important.  EDIT I see, it tries the serial port and gives up (does not exist) and then tries the USB modem and finds the right parameters.  Serial comment NOT important.

Don't know if My Settings will add to or overwrite wvdial.conf   .  It appears that My Settings is just a form of wvdialconf
« Last Edit: February 10, 2011, 11:34:47 PM by Dinky » Logged

#10 Re: use phone as modem

robbernews
Contributor
*
Posts: 40


February 10, 2011, 11:27:04 PM

Apparently it does, because while I was muddling about with the          vi           usage in Terminal, I went back to My Settings M.C. to see what I used as the phone number.  While I was there, I thot I'd throw in a "dummy" u-name/p-word, then it said I'd have to restart, I said later, quit Terminal, restarted Sugar with the phone plugged in but off.  When Sugar was back, I powered on the phone and the Wireless Modem icon appeared in the Frame.  I thot, "WTH", and clicked connect.  Guess what?  It did!  No more Terminal work for me, except that I'm going to look in the   /etc/wvdial.conf         file to see if the phone#/u-name/p-word are there now.  More excitement tmro.
Logged

#11 Re: use phone as modem

robbernews
Contributor
*
Posts: 40


February 11, 2011, 08:54:27 AM

"Don't know if My Settings will add to or overwrite wvdial.conf   .  It appears that My Settings is just a form of wvdialconf"

Apparently  it doesn't, because I just did:                     less /etc/wvdial.conf
and there's no phone#/u-name/p-word indicated.
Hmmmm...
Love a good mystery!  Also, now even when the XO is running, and the phone is on, I can plug in and I select "PC Suite mode" on my phone (remember, a Nokia 5230) and presto, there's the Modem icon in the frame.
When I learn to switch between insert and command in    vi      , I'll config a phone#/u-name/p-word and then try to connect vial the          wvdial            command. 
Logged

#12 Re: use phone as modem

robbernews
Contributor
*
Posts: 40


February 12, 2011, 08:56:13 AM

Having some trouble with                   vi                  .
I am able to edit the entries for ph.#/u-n/p-w, but when I          :q
I get a red message at the bottom saying:
E37:  No write since last change (add ! to override)
But if I then type the command                :q!
then I lose the changes.  What am I missing?
Logged

#13 Re: use phone as modem

Dinky
Senior Contributor
**
Posts: 238


February 12, 2011, 12:09:16 PM

You have to issue the write command.  If I remember correctly :         :wq

But do check the vi manual on google.

I thought you were going to swear off command lines  Wink
« Last Edit: February 12, 2011, 12:12:12 PM by Dinky » Logged

#14 Re: use phone as modem

robbernews
Contributor
*
Posts: 40


February 12, 2011, 12:23:04 PM

Not yet!  I've only just begun!
Logged
Pages: [1] 2
Print
Jump to:  

Members
Total Members: 2406
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 29
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 19
Total: 19