Re: Watching videos on neo freerunner (openmoko 2008.12) mplayer-glamo (Was Re: Jabra BT3030 experience anywhere ?)

2009-04-08 Thread Lothar Behrens
Here it is, what I have published that time:

Searching for 'Jabra' on the wiki gave no result and searching for  
'Bluetooth' gave no headline regarding to Jabra, but I
know, there is a A2DP page (http://wiki.openmoko.org/wiki/A2DP). The  
Jabra 3030 BT isn't reported there to work.

So before I do, has it been put by someone at the wiki or anywhere?

Lothar

Am 19.01.2009 um 14:34 schrieb Lothar Behrens:

 Hi,

 now I have got the Jabra BT3030 working. Excelent sound, no crushing  
 noices as experienced with my Mac OS X :-)

 I also have successfully tested connection with a second phone to  
 test incoming calls. I'll hear a ring and I could accept
 and speak.

 Once the mplayer didn't come back with sound. I'll figure out the  
 cause if I have time. Restarting helped to solve.

 The installation steps, Steven has explained, are correct, but on  
 the 2008.12 are some packages not installed.

 I am using mplayer. And there is a working description as of post  
 from Glen at 29. Dezember 2008 04:27:48 MEZ.
 There was only an issue with the libgcc library that was too old,  
 thus sdl couldn't be installed, what mplayer caused to
 be not startable. (At least today)

 After installing the following package, sdl was installable and  
 mplayer would work.

 http://www.angstrom-distribution.org/feeds/2008/ipk/glibc/armv4t/base/libgcc1_4.2.4-r5.1_armv4t.ipk

 Also missing is the bluez-utils-alsa package. Mplayer couldn't find

 These are my packets:

 r...@om-gta02:~# opkg list_installed | grep blue
 bluez-audio - 3.33-r3 -
 bluez-hcidump - 1.42-r0 -
 bluez-utils - 3.33-r3 -
 bluez-utils-alsa - 3.33-r3 -
 bluez-utils-compat - 3.33-r3 -
 kernel-module-bluetooth -  
 3:2.6.24+gitr76014+fb42ce6724576fc173faf8abfb04aa2c36d213b7-r2.01 -
 libbluetooth2 - 3.33-r0 -

 The other packages are as reported from Glen.

 Here is my script to use the headset. (The bluetooth device must be  
 activated, or added as a line):

 #!/bin/sh

 export DEVICE=XX:XX:XX:XX:XX:XX

 /etc/init.d/bluetooth stop
 /etc/init.d/bluetooth start

 sleep 1
 passkey-agent --default  

 sleep 1
 echo Create bonding
 dbus-send --system --type=method_call --print-reply -- 
 dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.CreateBonding  
 string:$DEVICE

 sleep 1
 echo Activating service audio
 dbus-send --system --print-reply --dest=org.bluez /org/bluez  
 org.bluez.Manager.ActivateService string:audio

 sleep 1
 echo Creating device
 dbus-send --system --type=method_call --print-reply -- 
 dest=org.bluez /org/bluez/audio org.bluez.audio.Manager.CreateDevice  
 string:$DEVICE

 sleep 1
 echo Connecting sink
 dbus-send --system --type=method_call --print-reply --dest=org.bluez  
 /org/bluez/audio/device0 org.bluez.audio.Sink.Connect


 To use the bluetooth audio device, the player has to started with  
 the correct parameters.

 Have fun - I have :-)

 Lothar

 -- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
 Lothar Behrens
 Heinrich-Scheufelen-Platz 2
 73252 Lenningen









 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community

-- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
Lothar Behrens
Heinrich-Scheufelen-Platz 2
73252 Lenningen









___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Jabra BT3030 experience anywhere ?

2009-02-04 Thread Simon Kagstrom
Hi!

(Awakening this old thread again)

On Mon, 19 Jan 2009 10:33:25 +0100
Lothar Behrens lothar.behr...@lollisoft.de wrote:

 I have no success on FDOM at the stage:
 
 ~#dbus-send --system --type=method_call --print-reply -- 
 dest=org.bluez /org/bluez/audio
 org.bluez.audio.Manager.CreateDevice string:XX:XX:XX:XX:XX:XX
 Error org.freedesktop.DBus.Error.UnknownMethod: Method
 CreateDevice with signature s on interface
 org.bluez.audio.Manager doesn't exist

I saw you fixed this later by installing some package. I'm trying to do
the same thing with the latest FSO, milestone 5, but have no luck - I
get the same message as you.

I've tried looking for bluetooth packages, but I've now installed
everything I can find. It looks like a Dbus issue, someone knows how to
solve these things?

// Simon

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Jabra BT3030 experience anywhere ?

2009-02-04 Thread The Digital Pioneer
Yeah, I kept getting this too, had to give up. Not with a Jabra BT3030
either.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Jabra BT3030 experience anywhere ?

2009-01-19 Thread Lothar Behrens

Hi,

Am 19.01.2009 um 02:11 schrieb Steven King:

snip



the sequence was something like:

~# opkg install bluez-audio blue-util


I currently have FDOM. Is there a difference in package name or is it  
not available there ?


~#opkg list | grep bluez
bluez-hcidump - 1.38-r0 - Linux Bluetooth Stack HCI Debugger Tool.
bluez-hcidump-dbg - 1.38-r0 - Linux Bluetooth Stack HCI Debugger Tool.
bluez-hcidump-dev - 1.38-r0 - Linux Bluetooth Stack HCI Debugger Tool.
bluez-hcidump-doc - 1.38-r0 - Linux Bluetooth Stack HCI Debugger Tool.
bluez-utils - 3.23-r4 - Linux Bluetooth Stack Userland Utilities.

* bluez-utils-alsa - 3.23-r2 - Linux Bluetooth Stack Userland Utilities.

bluez-utils-alsa-dbg - 3.23-r2 - Linux Bluetooth Stack Userland  
Utilities.
bluez-utils-alsa-dev - 3.23-r2 - Linux Bluetooth Stack Userland  
Utilities.

bluez-utils-compat - 3.23-r4 - Linux Bluetooth Stack Userland Utilities.
bluez-utils-dbg - 3.23-r4 - Linux Bluetooth Stack Userland Utilities.
bluez-utils-dev - 3.23-r4 - Linux Bluetooth Stack Userland Utilities.
bluez-utils-doc - 3.23-r4 - Linux Bluetooth Stack Userland Utilities.
bluez-utils-gst - 3.23-r4 - Linux Bluetooth Stack Userland Utilities.
bluez-utils-gst-dbg - 3.23-r4 - Linux Bluetooth Stack Userland  
Utilities.


I tried the marked one on my last installation, but no success (FSO  
image milestone 4.1).
Also in the feature comparsion table of the distributions, FSO marks  
bluetooth as not working.


Is that outdated information, or true (as I have at least seen my  
BT3030) ?


Thanks

Lothar

-- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
Lothar Behrens
Heinrich-Scheufelen-Platz 2
73252 Lenningen








___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Jabra BT3030 experience anywhere ?

2009-01-19 Thread Lothar Behrens
Just a note:

I have no success on FDOM at the stage:

~#dbus-send --system --type=method_call --print-reply -- 
dest=org.bluez /org/bluez/audio org.bluez.audio.Manager.CreateDevice  
string:XX:XX:XX:XX:XX:XX
Error org.freedesktop.DBus.Error.UnknownMethod: Method CreateDevice  
with signature s on interface org.bluez.audio.Manager doesn't exist

I have installed bluez-utils-alsa, but that may not be the cause.

Ill try 2008.12 now.

Lothar

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Jabra BT3030 experience anywhere ?

2009-01-19 Thread Lothar Behrens

Hi,

now I have got the Jabra BT3030 working. Excelent sound, no crushing  
noices as experienced with my Mac OS X :-)


I also have successfully tested connection with a second phone to test  
incoming calls. I'll hear a ring and I could accept

and speak.

Once the mplayer didn't come back with sound. I'll figure out the  
cause if I have time. Restarting helped to solve.


The installation steps, Steven has explained, are correct, but on the  
2008.12 are some packages not installed.


I am using mplayer. And there is a working description as of post from  
Glen at 29. Dezember 2008 04:27:48 MEZ.
There was only an issue with the libgcc library that was too old, thus  
sdl couldn't be installed, what mplayer caused to

be not startable. (At least today)

After installing the following package, sdl was installable and  
mplayer would work.


http://www.angstrom-distribution.org/feeds/2008/ipk/glibc/armv4t/base/libgcc1_4.2.4-r5.1_armv4t.ipk

Also missing is the bluez-utils-alsa package. Mplayer couldn't find

These are my packets:

r...@om-gta02:~# opkg list_installed | grep blue
bluez-audio - 3.33-r3 -
bluez-hcidump - 1.42-r0 -
bluez-utils - 3.33-r3 -
bluez-utils-alsa - 3.33-r3 -
bluez-utils-compat - 3.33-r3 -
kernel-module-bluetooth -  
3:2.6.24+gitr76014+fb42ce6724576fc173faf8abfb04aa2c36d213b7-r2.01 -

libbluetooth2 - 3.33-r0 -

The other packages are as reported from Glen.

Here is my script to use the headset. (The bluetooth device must be  
activated, or added as a line):


#!/bin/sh

export DEVICE=XX:XX:XX:XX:XX:XX

/etc/init.d/bluetooth stop
/etc/init.d/bluetooth start

sleep 1
passkey-agent --default  

sleep 1
echo Create bonding
dbus-send --system --type=method_call --print-reply --dest=org.bluez / 
org/bluez/hci0 org.bluez.Adapter.CreateBonding string:$DEVICE


sleep 1
echo Activating service audio
dbus-send --system --print-reply --dest=org.bluez /org/bluez  
org.bluez.Manager.ActivateService string:audio


sleep 1
echo Creating device
dbus-send --system --type=method_call --print-reply --dest=org.bluez / 
org/bluez/audio org.bluez.audio.Manager.CreateDevice string:$DEVICE


sleep 1
echo Connecting sink
dbus-send --system --type=method_call --print-reply --dest=org.bluez / 
org/bluez/audio/device0 org.bluez.audio.Sink.Connect



To use the bluetooth audio device, the player has to started with the  
correct parameters.


Have fun - I have :-)

Lothar

-- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
Lothar Behrens
Heinrich-Scheufelen-Platz 2
73252 Lenningen








___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Jabra BT3030 experience anywhere ?

2009-01-19 Thread arne anka
passkey-agent, ie pairing, should be necessary only the first time using a  
bt device (except you removed the cache, by flashing or deleting, of  
course).
can somebody, please, put these steps in the wiki?
if two people got a jawbone working with these steps, it is obviously far  
better than anything else posted yet.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Jabra BT3030 experience anywhere ?

2009-01-19 Thread Lothar Behrens
I have choosen this to have one script and not another for bonding to  
be issued before. If the bonding is done, the output of that command

could simply ignored.

There are other samples for passkey gathering. I had no luck with the  
GUI (python, import gtk) because of propably missing python

libraries.

The best solution would be calling the GUI version of a passkey when  
there is no bonding. Also there are issues with the media player
that are have to passed special parameters not always required (if no  
bt device is in the field).


I suggest a config file written by the passkey agent that a bluetooth  
device should be used, then in the mplayer start scripts I posted some

time ago desicions could be made how to output the sound.

OTOH the sound system should do that, not the player :-)

BTW, that BT device and an FM transmitter would be quite a good car  
handsfree installation.


Using a 2 Ampere car USB adapter, also charging is no more an issue  
and the BT device could charged too :-)


Lothar

Am 19.01.2009 um 14:49 schrieb arne anka:

passkey-agent, ie pairing, should be necessary only the first time  
using a

bt device (except you removed the cache, by flashing or deleting, of
course).
can somebody, please, put these steps in the wiki?
if two people got a jawbone working with these steps, it is  
obviously far

better than anything else posted yet.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community



-- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
Lothar Behrens
Heinrich-Scheufelen-Platz 2
73252 Lenningen








___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Jabra BT3030 experience anywhere ?

2009-01-19 Thread Angus Ainslie
On Mon, Jan 19, 2009 at 7:51 AM, Lothar Behrens
lothar.behr...@lollisoft.de wrote:
 I have choosen this to have one script and not another for bonding to be
 issued before. If the bonding is done, the output of that command
 could simply ignored.
 There are other samples for passkey gathering. I had no luck with the GUI
 (python, import gtk) because of propably missing python
 libraries.

Are you talking about the scripts on the bluetooth wiki page ? If so
they don't work properly with bluez 3.33 which last time I checked is
the version in most repositories They are also suffering some bitrot
and probably need some rewriting.

As far as bonding to a device thats already bonded is it's better to
delete the old bonding and create a new one. I found that if the user
was trying to re-pair a device there's was usually a reason. Some of
these headsets will only store pairing for 1 device so a new paring
may be required if it has been paired with a deifferent device since
the FR last saw it.

Angus

-- 
Angus Ainslie
http://www.handheldshell.com/

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Jabra BT3030 experience anywhere ?

2009-01-19 Thread quatrox
The nice thing about BT3030 is that it can be
paired with 2 devices simultainously:)

Anyway, I agree.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Jabra BT3030 experience anywhere ?

2009-01-18 Thread Lothar Behrens

Hi,

I like to know if someone has used this bluetooth stereo headset and  
how the steps are to got it running.
Also I like to know what distributions are actually having a fully  
functional bluetooth.


I have had FSO image milestone 4.1 that at least was able to see the  
headset when scanning but I was
not able to do the bonding steps with the dbus command line samples,  
that I do not find today (link).


With that samples and the passkey-agent --default   I only got  
error messages that tell me
there is no reply to the dbus command. Removing the --print-replay  
didn't helped anyway.


Also I tried some python scripts that did not work due to a missing  
import (gtk). Where is the related module ?
I didn't found any with opkg list | grep gtk. There are some, but I  
don't know what to install. Any hints therefore ?


BTW, I updated my FSO image milestone 4.1 yesterday and got a brick :-)

There is an issue with the touch screen driver that doesn't function  
anymore. If someone updates, please capture

the output for review here (I haven't done it :-)

If there is any success with that pice I will know it.

I'll test another phone image today if I have time.

Thanks

Lothar

-- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
Lothar Behrens
Heinrich-Scheufelen-Platz 2
73252 Lenningen








___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Jabra BT3030 experience anywhere ?

2009-01-18 Thread quatrox
I also got a BT3030.
I was able to connect to it, but could not set up pairing
correctly.

I will try again when I get more time.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Jabra BT3030 experience anywhere ?

2009-01-18 Thread Steven King
On Sunday, January 18, 2009 1:50:26 Lothar Behrens wrote:
 Hi,

 I like to know if someone has used this bluetooth stereo headset and
 how the steps are to got it running.
 Also I like to know what distributions are actually having a fully
 functional bluetooth.

I have 2008.12 paired with my bt3030.  I had to install bluez-audio and 
bluez-util, restart bluetoothd and then run passkey-agent and then with the 
bt3030 in pairing mode, follow the steps from 
http://wiki.bluez.org/wiki/HOWTO/AudioDevices to connect to the bt3030.   A 
trivial attempt at a2dp seemed to work correctly.  Now if I can get the 
freerunner to do HSP with the bt3030 I'll be a happy camper...

 my /etc/asound.conf looks like:
# default dmix configuration

pcm.!default {
type plug
slave.pcm dmix
}

ctl.mixer0 {
type hw
card 0
}

pcm.bluetooth {
type bluetooth
device XX:XX:XX:XX:XX:XX
profile auto
}

the sequence was something like:

~# opkg install bluez-audio blue-util

~# /etc/init.d/bluetooth stop

~# /etc/init.d/bluetooth start

~# passkey-agent --default  

~# dbus-send --system --print-reply --dest=org.bluez /org/bluez \ 
org.bluez.Manager.ActivateService string:audio

~# dbus-send --system --type=method_call --print-reply \
--dest=org.bluez /org/bluez/audio org.bluez.audio.Manager.CreateDevice \ 
string:XX:XX:XX:XX:XX:XX

where XX:XX:XX:XX;XX is the baddr of the bt3030. Then

~# dbus-send --system --type=method_call --print-reply \
--dest=org.bluez /org/bluez/audio/device0 org.bluez.audio.Sink.Connect

at that point I was able to do:

~# aplay -D bluetooth phone.wav

and get what sounded like a2dp on the bt3030.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Jabra BT3030 experience anywhere ?

2009-01-18 Thread Carl Lobo
Hi,
It seems like Steven managed to get his headset working routing the
sound over HCI. The FR has this high tech sound chip that is directly
connected to the GSM module and hence can (theoretically at least)
keep the CPU off while you're on a phone call. This mode also supports
full duplex (which AFAIK is unsupported using HCI routing) which means
you can use both the mic and speakers of the headset for a phone call.
I'm not sure if anyone has been able to send sound to the headset from
the CPU on a Freerunner using the Wolfson chip directly. The way the
FR is supposed to work though is the control channel of the headset
needs to be routed through HCI and the sound should be through the
wolfson, else it will end up eating out the battery.
I've not been able to get my Jawbone working with either way, it
doesn't have A2DP support...  It works with the same version of Bluez
using my laptop and other devices... The most I've gotten out of the
FR is that the connect and disconnect happens properly and it's acked
by the headset - HCI packets get sent using the method above, but no
sound on the FR. Same for the wolfson way. I've tried setting all the
alsa params possible... Maybe someone can shed some more light on
this.

On Mon, Jan 19, 2009 at 6:41 AM, Steven King sfkin...@yahoo.com wrote:
 On Sunday, January 18, 2009 1:50:26 Lothar Behrens wrote:
 Hi,

 I like to know if someone has used this bluetooth stereo headset and
 how the steps are to got it running.
 Also I like to know what distributions are actually having a fully
 functional bluetooth.

 I have 2008.12 paired with my bt3030.  I had to install bluez-audio and
 bluez-util, restart bluetoothd and then run passkey-agent and then with the
 bt3030 in pairing mode, follow the steps from
 http://wiki.bluez.org/wiki/HOWTO/AudioDevices to connect to the bt3030.   A
 trivial attempt at a2dp seemed to work correctly.  Now if I can get the
 freerunner to do HSP with the bt3030 I'll be a happy camper...

  my /etc/asound.conf looks like:
 # default dmix configuration

 pcm.!default {
type plug
slave.pcm dmix
 }

 ctl.mixer0 {
type hw
card 0
 }

 pcm.bluetooth {
type bluetooth
device XX:XX:XX:XX:XX:XX
profile auto
 }

 the sequence was something like:

 ~# opkg install bluez-audio blue-util

 ~# /etc/init.d/bluetooth stop

 ~# /etc/init.d/bluetooth start

 ~# passkey-agent --default  

 ~# dbus-send --system --print-reply --dest=org.bluez /org/bluez \
 org.bluez.Manager.ActivateService string:audio

 ~# dbus-send --system --type=method_call --print-reply \
 --dest=org.bluez /org/bluez/audio org.bluez.audio.Manager.CreateDevice \
 string:XX:XX:XX:XX:XX:XX

 where XX:XX:XX:XX;XX is the baddr of the bt3030. Then

 ~# dbus-send --system --type=method_call --print-reply \
 --dest=org.bluez /org/bluez/audio/device0 org.bluez.audio.Sink.Connect

 at that point I was able to do:

 ~# aplay -D bluetooth phone.wav

 and get what sounded like a2dp on the bt3030.


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community