Friday, July 23, 2010

Second phone loaded with Hackable1

Today I received the shipment of 16GB SD cards so I proceeded to format one and load a clean install of Hackable1 on it. I have since wiped my OpenSUSE install from my netbook and loaded Windows7. So to do the card partition, format, and install I used an Ubuntu Netbook remix live USB installation. I tried to do the above in a VMWare install of Debian but I had some problems accessing the USB card reader. UBNR worked really well on an 8GB thumbstick, I used the persistent version with a 4GB partition for saving changes. I will keep this on my thumbstick since it was so handy.

Future Work

1. Test Tango GPS install on "Josh" (2nd Openmoko) and sync with laptop, download maps, etc.
2. Figure out position sharing and look into setting up alternate position sharing/map server

Thursday, July 22, 2010

Using the Neo Freerunner as a GPS receiver

This is fantastic, figured out how to use the Neo Freerunner as a GPS receiver for my Netbook. First off, I installed Debian 5.0 in VMWare Workstation onto my Acer Netbook running Windows 7. Then I booted the Freerunner which is running a version of Debian (Hackable1) , connected it to USB, and configured the USB0 port on the netbook using the following commands:

# iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
# sysctl -w net.ipv4.ip_forward=1
# ifconfig usb0 192.168.0.200

Once we have networking up and running we can now run TangoGPS on the Netbook, and then go into configuration and set the GPSD to point to the Freerunner, default IP is: 192.168.0.202 and the Port is 2947. Allow a few minutes for the Freerunner to acquire satellites and download map tiles. There are 3 map souces to choose from:

1. OSM - Open Street Map
2. Topo
3. Open Cycle Map

There is a 4th Google one but it is for testing only.

I am using OSM for now. It allows you to save tracks and using some other tools to upload those tracks into the OSM database. There is a tutorial on this at: www.tangogps.org/gps/cat/Documentation.

Thursday, July 8, 2010

Connectivity Test with 117G successful

Today I met with Josh Dixon and had him set up an IP subnet on the 117G radio (10.1.10.2 IP for the radio, and 10.1.10.1 for the Openmoko). After connecting the USB to Ethernet adapter to the 117G's Ethernet cable, then connecting the USB cable with adapter to the Openmoko and switching on USB host mode, we were able to ping from phone to radio and vice versa. This is very good. Now to work on some applications to use for TNT which is starting on August 9th.

Saturday, July 3, 2010

We have contact!

EUREKA, EUREKA, EUREKA. FINALLY able to ping across Ethernet to Openmoko using USB to Ethernet adapter! Trying to get my thoughts down quickly before I forget what made it work.

First thing is I switched from the "cross-over cable" to a "straight-through" Ethernet cable. Then I tried to "arping" from the OpenMoko phone to the Netbook and it said "Eth0" is down. Well holy smokes, there is an Eth0 interface now, that is new. So I tried:
ifconfig eth0 up

And Eureka, I now have an Eth0 interface on Openmoko in addition to my USB0. Now for the subnetting:

On the OpenMoko, I ran: ifconfig eth0 192.168.0.203/24 (usb0 is 192.168.0.202/24 by default)

Then I ran: route add -host 192.168.0.200 dev eth0 (to tell OM to use eth0 interface to reach netbook) and "Voila", I can now ping in both directions. Seems like a very simple setup, however this has been many weeks of research and pain just to figure out. Now we are cooking with Gas! The only minor problem now is that when the phone or PC suspends I have to retype all the commands. I should be able to automate this or write a script to do it from both sides. Yay, Yay, Yay, I can't say enough how happy I am right now. THIS IS AWESOME. I should be able to connect to the 117G now for a test, since I can configure the interface from the phone. I am running the Hackable1 distribution, which is based on Debian with the Lenny distribution set of packages. It includes the aptitude (apt-get) package management system.

So all at once, here is the setup:

Straight through Ethernet cable connected to Netbook, connected to Cisco USB300M, connected to mini-USB to USB-A adapter, connected to OpenMoko.

On Netbook run: ifconfig eth0 192.168.0.200/24

On OpenMoko run: long press AUX button and select 'toggle USB mode'
ifconfig eth0 192.168.0.203/24
ifconfig eth0 up
route add -host 192.168.0.200 dev eth0

ping away!

I can also SSH into the device. I don't have internet working yet, I've tried using IP forward and Masquerade on the Netbook side but something in my configuration is messing things up. No matter, the battery is getting low now so I'm switching back to USB networking.

Future work:
  1. Figure out a power solution, maybe using a USB hub or dual USB cable that will allow me to power the USB-Ethernet adapter and phone while connected via Ethernet.
  2. Write and turn in Thesis proposal
  3. Connect to 117G.
  4. Look for Apps for Demonstration purposes.i

Friday, July 2, 2010

Received new USB-Ethernet adapter today (MAC: 00:10:13:48:DC:C1), trying it out. When I switch to USB host mode this adapter shows up when I run 'lsusb', however still can't ping across. Running updates now, will download 'arping' to see if I can talk to it from one side or the other.

apt-get update
apt-get install upgrade

Run dpkg-reconfigure tzdata (to change timezone)

apt-get install arping