Finally figured out Linphone (I think). Turns out the mic on my netbook wasn't working. Used an external mic and Bingo, works great. I now have audio from the netbook to the phone, and from phone to netbook using two external mic/headphone combos. A couple of commands to run to get things working. On the Openmoko, as root run:
alsactl -f voip-handset.state restore
Then start linphone: linphonec
at the linphone prompt type: soundcard use 0
Everything should work now.
That's it for me, going to be now.
NeoFR_Dev
Sunday, April 3, 2011
Wednesday, November 24, 2010
Linphone from Openmoko to Netbook working
Today I was able to get Linphone working on Openmoko and Ubuntu. I made a call from both the Netbook to the Openmoko and the reverse over the Fortress Radios. Currently I only have audio from Openmoko to the Netbook. If I talk into the Openmoko I can hear the audio out on the Netbook but not the reverse. I believe the netbook does not have an internal mic so I will try an external mike when I get home. To briefly recount the setup:
I needed to update the voip-handset.state file.
Run on Openmoko as root
#wget http://svn.openmoko.org/trunk//src/target/audio/om-gta02/voip-handset.state
# alsactl -f voip-handset.state restore
The GUI version of Linphone works fine on Ubuntu. To make a call simply type in the SIP window:
sip:root@10.0.0.4 (user@ip of phone)
To call from phone to Netbook I need to use the command line version "linphonec"
On the Openmoko from a terminal type:
#linphonec
//then update the sound card
linphonec>soundcard use 0
linphonec> call sip:ubuntu@10.0.0.1 (user @ ip of netbook)
Again, only have audio from phone to netbook.
Future Work:
1. Plug in an external mic and test audio from netbook to phone.
2. Work on TangoGPS
I needed to update the voip-handset.state file.
Run on Openmoko as root
#wget http://svn.openmoko.org/trunk//src/target/audio/om-gta02/voip-handset.state
# alsactl -f voip-handset.state restore
The GUI version of Linphone works fine on Ubuntu. To make a call simply type in the SIP window:
sip:root@10.0.0.4 (user@ip of phone)
To call from phone to Netbook I need to use the command line version "linphonec"
On the Openmoko from a terminal type:
#linphonec
//then update the sound card
linphonec>soundcard use 0
linphonec> call sip:ubuntu@10.0.0.1 (user @ ip of netbook)
Again, only have audio from phone to netbook.
Future Work:
1. Plug in an external mic and test audio from netbook to phone.
2. Work on TangoGPS
Monday, October 25, 2010
Week of 25 October 2010
I've finally figured out how to get the Freerunner to support an external USB device AND charge at the same time. Right now I'm using a clunky setup with a USB Y-cable (2 USB A male to 1 usb mini male) and a powered hub to supply power to the Freerunner and the USB-Ethernet adapter. Here is how it is conneted:
USB hub plugged into AC power
Freerunner Configuration
1) Toggle USB mode to USB host
echo host > /sys/devices/platform/s3c-ohci/usb_mode
2) Turn off power out from Freerunner:
echo 0 > /sys/devices/platform/s3c2440-i2c/i2c-adapter:i2c-0/i2c-dev:i2c-0/device/i2c-adapter:i2c-0/0-0073/neo1973-pm-host.0/hostmode
Y-Cable Connections
1) Black (data and power) USB A male connection into USB hub upstream port using USB A to USB mini adapter
1) Black (data and power) USB A male connection into USB hub upstream port using USB A to USB mini adapter
2) Red (power only) connected to one of the downstream ports of the USB hub
3) USB to Ethernet adapter plugged into one of the downstream ports of the USB hub
Once everything is connected you can configure your interfaces. I have the following interface configuration:
On the Freerunner:
USB0: 192.168.1.202 (I'm currently using the 192.168.0.200 subnet for the second FR
which is connected to a USB port on my Netbook)
Eth0: 192.168.1.203
On netbook:
Eth0: 192.168.1.200
I've changed the IP address setup to avoid interference with the Freerunner's default subnet (192.168.0.202)
Now I'm using the 10.0.0.0 subnet as follows:
Netbook: Eth0: 10.0.0.1
Fortress1: Aux: 10.0.0.2
Fortress2: Aux:10.0.0.3
Freerunner: Eth0: 10.0.0.4 (I've taken to disabling USB0 when not in use)
I was able to ping across both ways. Tomorrow I will try to run TangoGPS on the laptop and obtain the IP data from the Openmoko as originally planned.
Future work:
Try a separate power source. The main issue with the current y-cable is that the downstream connecter is a USB-mini male. To connect the USB-ethernet adapter to the downstream side I would need a converter from USB-mini male to USB-A female. I'm not sure that one exists, may possibly require a custom made cable or two adapters.
Run TangoGPS on the laptop and obtain the IP data from the Openmoko as originally planned.
That's all for now.
Monday, October 4, 2010
Week of 4 October 2010, preparing for Demo1
OK, now I have some Fortress ES210 Mesh Networking Tactical Bridge radios and 2 Openmokos. I have them networked to my Netbook as follows:
Netbook Ethernet connection (eth0) IPaddress: 192.168.0.1/24
Fortress ES210 #1: Connected to netbook with Ethernet AUX port, IP address: 192.168.0.2
Fortress ES101 #2: Connected to ES210 #1 Over Fast Path Mesh Wireless G connection
Openmoko Connected to ES210#2 via USB/Ethernet Adapter (eth0: 192.168.0.5) and USB0 (192.168.0.6)
to set up the connection, bring down both interfaces on Openmoko:
ifconfig usb0 down
ifconfig eth0 down
then assign them new ip addresses:
ifconfig eth0 192.168.0.5
ifconfig usb0 192.168.0.6
then bring both interfaces up again:
ifconfig usb0 up
ifconfig eth0 up
assuming your Radios are up and have ip addresses (192.168.0.2 [FORTRESS1] and 192.168.0.3 [FORTRESS2]), and the Netbook interface eth0 has ipaddress: 192.168.0.1, you should now be able to ping across in both directions.
Next step: create a script to do this in "/home/hackable1" on the phone to run. Right now, every time the phone goes to sleep we have to re-run these commands.
Was able to install all previous apps on "Josh" and also added "iperf" for load testing. Also got "Josh" set up with Tango GPS and used it for GPS data using TangoGPS via USB netoworking.
Configuring TangoGPS:
First off, you must run TangoGPS as root. Next, you click on the "i" information Icon on the left side of the GPS GUI and scroll over using the right arrrow and there is a place to enter the IP address and port of your GPSD.
Next step is to do this over the Radios.
Netbook Ethernet connection (eth0) IPaddress: 192.168.0.1/24
Fortress ES210 #1: Connected to netbook with Ethernet AUX port, IP address: 192.168.0.2
Fortress ES101 #2: Connected to ES210 #1 Over Fast Path Mesh Wireless G connection
Openmoko Connected to ES210#2 via USB/Ethernet Adapter (eth0: 192.168.0.5) and USB0 (192.168.0.6)
to set up the connection, bring down both interfaces on Openmoko:
ifconfig usb0 down
ifconfig eth0 down
then assign them new ip addresses:
ifconfig eth0 192.168.0.5
ifconfig usb0 192.168.0.6
then bring both interfaces up again:
ifconfig usb0 up
ifconfig eth0 up
assuming your Radios are up and have ip addresses (192.168.0.2 [FORTRESS1] and 192.168.0.3 [FORTRESS2]), and the Netbook interface eth0 has ipaddress: 192.168.0.1, you should now be able to ping across in both directions.
Next step: create a script to do this in "/home/hackable1" on the phone to run. Right now, every time the phone goes to sleep we have to re-run these commands.
Was able to install all previous apps on "Josh" and also added "iperf" for load testing. Also got "Josh" set up with Tango GPS and used it for GPS data using TangoGPS via USB netoworking.
Configuring TangoGPS:
First off, you must run TangoGPS as root. Next, you click on the "i" information Icon on the left side of the GPS GUI and scroll over using the right arrrow and there is a place to enter the IP address and port of your GPSD.
Next step is to do this over the Radios.
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.
Subscribe to:
Posts (Atom)