User:Historybuff/notes

From Openmoko

< User:Historybuff(Difference between revisions)
Jump to: navigation, search
m
(Add GPS bits)
Line 1: Line 1:
 +
These are scribbles. Should be cleaned up and moved into real pages if useful.
 +
 
Orientation of screen:
 
Orientation of screen:
  
Line 35: Line 37:
 
aplay foo.wav
 
aplay foo.wav
 
</pre>
 
</pre>
 +
 +
GPS:
 +
 +
I've gotten the binary up, but I'm still trying to decipher the NMEA output -- right now it doesn't look like I'm getting a fix, and when I replugged into the computer the neo froze. Grr.
 +
 +
[http://vancouver-webpages.com/peter/nmeafaq.txt] contains some good info for decoding, and [http://web.archive.org/web/20071119160631/http://www.openmoko.org.pl/node/55] is a good link for getting started. (I had issues with the original Polish site).
 +
 +
Project Cupcake will evolve out of this, if I ever get a Position fix. :)

Revision as of 19:01, 19 November 2007

These are scribbles. Should be cleaned up and moved into real pages if useful.

Orientation of screen:

xrandr -o 1 turns screen to landscape mode (xrandr -o 0 to go back to ordinary portrait)

Getting Battery status: cat `find /sys/ -name battvolt` the output is in millivolts. ~4224 millivolts is completely charged (observed 3568 lowest, 4207 highest)

exact location is /sys/devices/platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/

nicer script (cwd must be above)- CHARGE=`cat battvolt` && awk -v charge=${CHARGE} 'BEGIN {print charge/4224*100" "charge }'


GTA01_gsm_modem for AT commands; Gsmd for manual AT stuff

To get sound working: alsactl -f /etc/alsa/gsmhandset.state restore

Trying to record sound from the mic:

cat /dev/dsp does sample the ADC It's then 'simply' a case of setting the mixer controls so that the sound is routed from the mic to the adc See the nice simple explanatory block diagram in the middle of http://wiki.openmoko.org/wiki/Neo1973_Audio_Subsystem for guidance. In principle. You need to find which mic input the mic is connected to, setup the input gain and mic selector appropriately,setup the ALC mixer right, then set it up to route to the left or right ADC alsactl can do it (alsamixer)

alsactl -f /etc/alsa/capturehandset.state restore
arecord -f cd -t wav -d 10 foo.wav
Make noise for 10 seconds
alsactl -f /etc/alsa/stereoout.state restore
aplay foo.wav

GPS:

I've gotten the binary up, but I'm still trying to decipher the NMEA output -- right now it doesn't look like I'm getting a fix, and when I replugged into the computer the neo froze. Grr.

[1] contains some good info for decoding, and [2] is a good link for getting started. (I had issues with the original Polish site).

Project Cupcake will evolve out of this, if I ever get a Position fix. :)

Personal tools

These are scribbles. Should be cleaned up and moved into real pages if useful.

Orientation of screen:

xrandr -o 1 turns screen to landscape mode (xrandr -o 0 to go back to ordinary portrait)

Getting Battery status: cat `find /sys/ -name battvolt` the output is in millivolts. ~4224 millivolts is completely charged (observed 3568 lowest, 4207 highest)

exact location is /sys/devices/platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/

nicer script (cwd must be above)- CHARGE=`cat battvolt` && awk -v charge=${CHARGE} 'BEGIN {print charge/4224*100" "charge }'


GTA01_gsm_modem for AT commands; Gsmd for manual AT stuff

To get sound working: alsactl -f /etc/alsa/gsmhandset.state restore

Trying to record sound from the mic:

cat /dev/dsp does sample the ADC It's then 'simply' a case of setting the mixer controls so that the sound is routed from the mic to the adc See the nice simple explanatory block diagram in the middle of http://wiki.openmoko.org/wiki/Neo1973_Audio_Subsystem for guidance. In principle. You need to find which mic input the mic is connected to, setup the input gain and mic selector appropriately,setup the ALC mixer right, then set it up to route to the left or right ADC alsactl can do it (alsamixer)

alsactl -f /etc/alsa/capturehandset.state restore
arecord -f cd -t wav -d 10 foo.wav
Make noise for 10 seconds
alsactl -f /etc/alsa/stereoout.state restore
aplay foo.wav

GPS:

I've gotten the binary up, but I'm still trying to decipher the NMEA output -- right now it doesn't look like I'm getting a fix, and when I replugged into the computer the neo froze. Grr.

[1] contains some good info for decoding, and [2] is a good link for getting started. (I had issues with the original Polish site).

Project Cupcake will evolve out of this, if I ever get a Position fix. :)