Friday Feb 13, 2009

Mobile internet on OpenSolaris

I have a new mobile phone which is less steam driven than the one it replaces and, hopefully, will not power itself off and reset to factory defaults every few days. Being modern it can act as a USB modem device and therefore allows me to have my OpenSolaris Laptop work with it.

Following the instructions from James Leggs blog and some from an Email I had been sent (James' instructions were the same as the email) it all worked just fine except: The phone is a Nokia E71 and by default the USB setting was menu->connectivity->usb was set with "USB mode" to mass storage and "Ask on connection" to Yes. It seems that that was enough for OpenSolaris to see it as a disk drive and then not plumb up the serial devices. Changing the "USB mode" to "PC Suite" resolved this.

The only addition I have made was to add these scripts into /etc/ppp to disable nwam and fix resolv.conf when the link comes up and reverse that when it is taken down.

cjg@brompton:~$ cat /etc/ppp/ip-up
#!/bin/ksh -p

/usr/sbin/svcadm disable -t svc:/network/physical:nwam

mv /etc/resolv.conf /etc/resolv.conf.preppp

cp /etc/ppp/resolv.conf /etc/resolv.conf
chmod 644 /etc/resolv.conf
cjg@brompton:~$ 

and

cjg@brompton:~$ cat /etc/ppp/ip-down
#!/bin/ksh -p

test -f /etc/resolv.conf.preppp && mv /etc/resolv.conf.preppp /etc/resolv.conf

/usr/sbin/svcadm enable nwam
cjg@brompton:~$ 

Not rocket science and when nwam knows about ppp they will surely go but until then quite satisfactory.


Finally create a launcher that will start this at the click of a button. I have cheated here and simply have it starting in a terminal so I can stoop it by quitting the terminal:

cjg@brompton:~/Desktop$ cat 3G\\ network.desktop 

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=true
Icon[en_GB]=/usr/share/icons/gnome/24x24/actions/call-start.png
Name[en_GB]=3G network
Exec=\\spfexec pppd call vodafone\\n
Name=3G network
Icon=/usr/share/icons/gnome/24x24/actions/call-start.png
cjg@brompton:~/Desktop$ 

Tuesday May 29, 2007

Cool job

Now this is a cool job to have. Go around the world and buy bicycles at each location. Use the bike as a form of transport and a way to meet people while you do your research into mobile phone use and then give away the bicycle at the end.

"I buy a lot of bicycles. I have huge time pressures when in these places and I want to engage with the local population as much as possible.

"I find buying a bicycle is a great way to stay in touch with people. We give the bicycles away at end of the study."

I think the hardest part of the job for me might be giving away the bicycles!

Although given the current state of mobile phones I think they may not have done such a good job of this three or so years ago.

Tuesday Jan 09, 2007

Nokia phone as a USB storage device

I can access my phone, a Nokia 6230i ,as a USB storage device on Solaris. All was required was to set reduced-cmd-support to true in /kernel/drv/scsa2usb.conf :

attribute-override-list =
        "vid=0x421 pid=0x429 reduced-cmd-support=true";

Next step is to see if I can get it to work with gnokii.


Tags:

About

This is the old blog of Chris Gerhard. It has mostly moved to http://chrisgerhard.wordpress.com

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today