User:VanInwagen

From Openmoko

(Difference between revisions)
Jump to: navigation, search
m (Infos)
(draft of alsaaudio-problems i encountered)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
== DHMOKO - Openmoko Freerunner im DHM ==
+
"matthiasfelsche" at "web" dot "de"
  
  
=== Infos ===
+
== Fiddlin' with Alsa and the Wolfson ==
  
 +
While writing Dictator 0.3 I came in trouble with recording and playing audio an the neo.
 +
Something seems wrong with either my state-files for Dictator or with the configuration of the wolfson or with the wolfson itself or something mysterious.
  
Ab dem 14. Januar bis zum 03. Mai werden im Deutschen Historischen Museum in Berlin 2 Freerunner zu sehen und anzufassen sein! Sie dienen als "Bedienung" einer SMS-Chatwall in der Ausstellung [http://www.dhm.de/ausstellungen/sprache-deutsch/index.html "Die Sprache Deutsch"].
+
=== Strange Behaviour ===
  
Auf ihnen läuft ein Debian (im Flash) und eine kleine Python-GTK-Anwendung, die eine simple Handy-Oberfläche simuliert, über die "SMS'" an einen MySQL-Server auf einem EeePC geschickt werden. Dieser EeePC gibt auch die SMS-Chatwall an den Beamer aus. Alles ganz simpel, aber chic!
+
trying arecord with only one channel on either 'hw:0' or 'hw:0,0' produces the following:
  
Sobald alles fertig ist, werden wir es, wenn möglich, zugänglich machen!
+
root@om-gta02 ~ $ arecord -v --channels=1 -f S16_LE -r 8000 -D hw:0
 +
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
 +
arecord: set_params:906: Channels count non available
  
Wir haben einige Probleme, was die mechanische Sicherung der Geräte angeht, noch nicht zu unserer Zufriedenheit gelöst, doch da wir die Handys schon gekauft haben, werden wir auch dieses Problem lösen! :)
+
Recording with two channels works.
  
 +
While playing a stereo wav-file the following is putted out to dmesg:
 +
[87893.780000] mapped channel 10 to 2
  
From January 1st to Mai 3rd you can see and touch 2 Openmoko Freerunners in the DHM (Deutsches Historisches Museum in Berlin! They serve as faked cellphones to control a sms-chatwall in the exhibition [http://www.dhm.de/ausstellungen/sprache-deutsch/index.html "Die Sprache Deutsch"].
+
Recording a wav with Dictator and explicitly saying, that one channel is used, the other one is putted into the file as well. If you do something like:
 +
cat test.wav | od -x | less
  
There is a Debian running on them in the Flash and a tiny Python-GTK-Application, which simulates a simple cellphone-GUI, which sends fake-sms to a MySQL-server on a EeePC. This EeePC even produces the output for the sms-chatwall for the beamer. Quite simple, but chic!
+
You can see the double-bytes with regular no-data values (0x0000 or 0xffff or similar).
 +
On the Neo these files are played in their declared speed but if you for example load them into audacity on your host-PC it will play the file twice as slow because it reads the second frame with 0-data too.
  
As Soon as everything is ready we will make it accessible to you, if possible.
+
Where does this mysterious double.byte come from and why does the Neo ignore it? Recording with two-channels where one explicitly bears the empty channel, everything is fine on neo and on host-PC.
  
By now we still got some problems with fixing the freerunners mechanically in the exhibition. But for we already bought them phones, we will solve this problem! :)
+
Removing the NULL-Bytes while recording mono, the file will be played at the right speed on your host but the Neo will double its speed.
  
=== News ===
+
I think it's the wolfson but i have to investigate.
  
 +
== Info Output Stuff ==
  
Hier werdet Ihr Neuigkeiten über unser kleines Projekt finden, sobald welche aufkommen!
+
$ arecord -l
Und da wir mit den Freerunnern nach der Ausstellung auch weiterhin spielen und experimentieren werden, auch darüber hinaus. :)
+
**** List of CAPTURE Hardware Devices ****
 +
card 0: neo1973gta02 [neo1973-gta02], device 0: WM8753 HiFi WM8753 HiFi-0 []
 +
  Subdevices: 1/1
 +
  Subdevice #0: subdevice #0
 +
card 0: neo1973gta02 [neo1973-gta02], device 1: Voice WM8753 Voice-1 []
 +
  Subdevices: 1/1
 +
  Subdevice #0: subdevice #0
  
Here you can find the latest news about our little project if some arise!
+
root@om-gta02 ~ $ cat /proc/asound/devices
And for we will play and experiment with the Freerunners after the exhibition even further stuff.
+
  0: [ 0]  : control
 +
16: [ 0- 0]: digital audio playback
 +
17: [ 0- 1]: digital audio playback
 +
24: [ 0- 0]: digital audio capture
 +
25: [ 0- 1]: digital audio capture
 +
33:        : timer
  
=== Contact ===
+
root@om-gta02 ~ $ cat /proc/asound/pcm
 +
00-00: WM8753 HiFi WM8753 HiFi-0 :  : playback 1 : capture 1
 +
00-01: Voice WM8753 Voice-1 :  : playback 1 : capture 1
  
 +
root@om-gta02 ~ $ cat /proc/asound/cards
 +
  0 [neo1973gta02  ]: WM8753 - neo1973-gta02
 +
                      neo1973-gta02 (WM8753)
  
felsche at dhm dot de
+
root@om-gta02 ~ $ cat /proc/asound/version
 
+
  Advanced Linux Sound Architecture Driver Version 1.0.18a.
heinz at dhm dot de
+
 
+
=== Screenshots ===
+
 
+
 
+
 
+
[[Image:dhmoko1.png | sms-input-page]]
+
 
+
 
+
 
+
[[Image:dhmoko2.png | name-input-page]]
+
 
+
 
+
 
+
[[Image:dhmoko3.png | send-page]]
+

Latest revision as of 23:31, 29 November 2009

"matthiasfelsche" at "web" dot "de"


[edit] Fiddlin' with Alsa and the Wolfson

While writing Dictator 0.3 I came in trouble with recording and playing audio an the neo. Something seems wrong with either my state-files for Dictator or with the configuration of the wolfson or with the wolfson itself or something mysterious.

[edit] Strange Behaviour

trying arecord with only one channel on either 'hw:0' or 'hw:0,0' produces the following:

root@om-gta02 ~ $ arecord -v --channels=1 -f S16_LE -r 8000 -D hw:0
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
arecord: set_params:906: Channels count non available

Recording with two channels works.

While playing a stereo wav-file the following is putted out to dmesg:

[87893.780000] mapped channel 10 to 2

Recording a wav with Dictator and explicitly saying, that one channel is used, the other one is putted into the file as well. If you do something like:

cat test.wav | od -x | less

You can see the double-bytes with regular no-data values (0x0000 or 0xffff or similar). On the Neo these files are played in their declared speed but if you for example load them into audacity on your host-PC it will play the file twice as slow because it reads the second frame with 0-data too.

Where does this mysterious double.byte come from and why does the Neo ignore it? Recording with two-channels where one explicitly bears the empty channel, everything is fine on neo and on host-PC.

Removing the NULL-Bytes while recording mono, the file will be played at the right speed on your host but the Neo will double its speed.

I think it's the wolfson but i have to investigate.

[edit] Info Output Stuff

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: neo1973gta02 [neo1973-gta02], device 0: WM8753 HiFi WM8753 HiFi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: neo1973gta02 [neo1973-gta02], device 1: Voice WM8753 Voice-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@om-gta02 ~ $ cat /proc/asound/devices 
 0: [ 0]   : control
16: [ 0- 0]: digital audio playback
17: [ 0- 1]: digital audio playback
24: [ 0- 0]: digital audio capture
25: [ 0- 1]: digital audio capture
33:        : timer
root@om-gta02 ~ $ cat /proc/asound/pcm 
00-00: WM8753 HiFi WM8753 HiFi-0 :  : playback 1 : capture 1
00-01: Voice WM8753 Voice-1 :  : playback 1 : capture 1
root@om-gta02 ~ $ cat /proc/asound/cards
 0 [neo1973gta02   ]: WM8753 - neo1973-gta02
                      neo1973-gta02 (WM8753)
root@om-gta02 ~ $ cat /proc/asound/version 
 Advanced Linux Sound Architecture Driver Version 1.0.18a.
Personal tools

DHMOKO - Openmoko Freerunner im DHM

Infos

Ab dem 14. Januar bis zum 03. Mai werden im Deutschen Historischen Museum in Berlin 2 Freerunner zu sehen und anzufassen sein! Sie dienen als "Bedienung" einer SMS-Chatwall in der Ausstellung "Die Sprache Deutsch".

Auf ihnen läuft ein Debian (im Flash) und eine kleine Python-GTK-Anwendung, die eine simple Handy-Oberfläche simuliert, über die "SMS'" an einen MySQL-Server auf einem EeePC geschickt werden. Dieser EeePC gibt auch die SMS-Chatwall an den Beamer aus. Alles ganz simpel, aber chic!

Sobald alles fertig ist, werden wir es, wenn möglich, zugänglich machen!

Wir haben einige Probleme, was die mechanische Sicherung der Geräte angeht, noch nicht zu unserer Zufriedenheit gelöst, doch da wir die Handys schon gekauft haben, werden wir auch dieses Problem lösen! :)


From January 1st to Mai 3rd you can see and touch 2 Openmoko Freerunners in the DHM (Deutsches Historisches Museum in Berlin! They serve as faked cellphones to control a sms-chatwall in the exhibition "Die Sprache Deutsch".

There is a Debian running on them in the Flash and a tiny Python-GTK-Application, which simulates a simple cellphone-GUI, which sends fake-sms to a MySQL-server on a EeePC. This EeePC even produces the output for the sms-chatwall for the beamer. Quite simple, but chic!

As Soon as everything is ready we will make it accessible to you, if possible.

By now we still got some problems with fixing the freerunners mechanically in the exhibition. But for we already bought them phones, we will solve this problem! :)

News

Hier werdet Ihr Neuigkeiten über unser kleines Projekt finden, sobald welche aufkommen! Und da wir mit den Freerunnern nach der Ausstellung auch weiterhin spielen und experimentieren werden, auch darüber hinaus. :)

Here you can find the latest news about our little project if some arise! And for we will play and experiment with the Freerunners after the exhibition even further stuff.

Contact

felsche at dhm dot de

heinz at dhm dot de

Screenshots

sms-input-page


name-input-page


send-page