maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   a2recv-esd Turns Your N8xx Into a A2DP speaker/headset (https://talk.maemo.org/showthread.php?t=30514)

t_moyashi 2009-07-27 14:03

a2recv-esd Turns Your N8xx Into a A2DP speaker/headset
 
3 Attachment(s)
a2recv-esd Turns Your N8xx Into a A2DP speaker/headset.
I am one of some people who want to stream music from PC to N8xx by Bluetooth.
OK,WLAN is better than BT at this situation. I know.
but I Googled it , and found <a2recv> in "bluetooth-alsa", old-old project.
Unfortunately ,a2recv needs /dev/dsp - tablets haven't it -(and esddsp doesn't work with),then I changed some part of a2recv's code to use ESD(Enlightment Sound Daemon).

Code:

1.turn on your tablet's bluetooth
2.download Attachment 3799 *1 on your tablet.
3.open Xterm
4.run "cd /your/download/dir/"
5.run "tar xvzf a2recv-esd.tar.gz"
6.run "cd a2recv-esd"
7.run "./sdptool add A2SNK" as root
8.run "./a2recv-esd" as root
9.scan and connect to your tablet
10.your tablet may start to sing a song(with death voice?  :-) )

Because of my low ability , a2recv-esd isn't good with almost all of stacks(Drivers).
and I don't know why.(it may be problem of timing to write )
When you hear intermittent musics, "l2ping" (at background) probably makes situation good.

btw,I also found similar project in GSoC09.
<del>They will make more hi-quality app than it. I believe it .</del>
He did it! BlueZ now has A2DP Sink support. Excellent!

*1 this archive includes :
a2recv-esd/
a2recv-esd/a2recv-esd (main program)
a2recv-esd/avrecv (AVRCP receiver)
a2recv-esd/avsnd (AVRCP sender)
a2recv-esd/hcitool (bluetooth utility)
a2recv-esd/l2ping
a2recv-esd/sdptool

jalladin 2009-07-27 14:12

Re: a2recv-esd Turns Your N8xx Into a A2DP speaker/headset
 
this sounded great, but i just want to be able to use my stereo Bluetooth head set to connect with my tablet and listen to music/make calls...

is this just for pc to tablet, do you know where to get the download fo what i mentioned to work because i've looked

Thesandlord 2009-07-27 15:32

Re: a2recv-esd Turns Your N8xx Into a A2DP speaker/headset
 
What does "sdptool add A2SNK" do exactly?

This is perfect if it works, I'll test shortly.

t_moyashi 2009-07-27 16:01

Re: a2recv-esd Turns Your N8xx Into a A2DP speaker/headset
 
excuse me, I took it from http://bluetooth-alsa.sourceforge.net/
Quote:

Originally Posted by jalladin (Post 307014)
this sounded great, but i just want to be able to use my stereo Bluetooth head set to connect with my tablet and listen to music/make calls...

is this just for pc to tablet, do you know where to get the download fo what i mentioned to work because i've looked

sorry , i don't know about it. I'm just a script-kiddy.
and Mr ,I think ,what you mentioned is hi-level task.
but bluetooth-alsa is something like a proof of concept.
for example , I also build <avrecv> - it is just receive AVRCP signals and tell them - just receive - ,then if you want it to do make calls , you must add some code to it.

>> listen to music/make calls
so, You said about switching between HFP and A2DP ?
There are some success in other linux box.
but I have never seen these about tablets before ...

t_moyashi 2009-07-27 16:45

Re: a2recv-esd Turns Your N8xx Into a A2DP speaker/headset
 
Quote:

Originally Posted by Thesandlord (Post 307029)
What does "sdptool add A2SNK" do exactly?

This is perfect if it works, I'll test shortly.

Thank you for testing.
once you run "sdptool add A2SNK", tablet replays 'i can play A2DP stream' for scan inquiry.

if your A2DPsender device can't recognize your tablet, try to run "hciconfig hci0 class 0x200404".
(usually , no need to do it)

if you run "hciconfig hci0 class 0x200404",
your tablet replays 'i am a headset' for scan inquiry.
(you can install hciconfig with "apt-get install bluez-utils-test" - this package include "l2ping" and other useful apps)

speculatrix 2009-07-31 22:54

Re: a2recv-esd Turns Your N8xx Into a A2DP speaker/headset
 
Quote:

Originally Posted by jalladin (Post 307014)
this sounded great, but i just want to be able to use my stereo Bluetooth head set to connect with my tablet and listen to music/make calls...

is this just for pc to tablet, do you know where to get the download fo what i mentioned to work because i've looked

sorry but you entirely misunderstand the point of this discussion.

you are asking how to use a bluetooth headset with the tablet. it's easy and well documented on the forum - just search for bluetooth headset.

this discussion is to make the tablet act as if it's a bluetooth headset, something that's eluded many people, so someone achieving this is very remarkable and earns a lot of kudos!

tj110158 2009-08-01 03:05

Re: a2recv-esd Turns Your N8xx Into a A2DP speaker/headset
 
Newbie here

Tried to follow instruction listed above.
1. Turned on Bluetooth
2. Downloaded and saved the two attachments into "Documents" folder
3. Stated Xterm "Sudo Gainroot
4. Type the following with and without the run command
- run sdptool add A2SNK
- sdptool add A2SNK

PROBLEM: kept getting message file not found

HELP!!!!

jalladin 2009-08-01 06:57

Re: a2recv-esd Turns Your N8xx Into a A2DP speaker/headset
 
Quote:

Originally Posted by speculatrix (Post 308085)
sorry but you entirely misunderstand the point of this discussion.

you are asking how to use a bluetooth headset with the tablet. it's easy and well documented on the forum - just search for bluetooth headset.

this discussion is to make the tablet act as if it's a bluetooth headset, something that's eluded many people, so someone achieving this is very remarkable and earns a lot of kudos!

Your right it is great, I believe i mentioned that it was, your also right about me jumping into this thread, I was a bit overzealous when I read "A2DP". already knowing about the other thread, I thought this might have been another (new) way to do that and more. my mistake, but great job t_moyashi I will try this as well. :)

t_moyashi 2009-08-01 10:52

Re: a2recv-esd Turns Your N8xx Into a A2DP speaker/headset
 
Quote:

Originally Posted by tj110158 (Post 308099)
Newbie here

Tried to follow instruction listed above.
1. Turned on Bluetooth
2. Downloaded and saved the two attachments into "Documents" folder
3. Stated Xterm "Sudo Gainroot
4. Type the following with and without the run command
- run sdptool add A2SNK
- sdptool add A2SNK

PROBLEM: kept getting message file not found

HELP!!!!

I fixed my first post.
please read it again, and download "a2recv-esd.tar.gz"
<del>sorry...I will fix my first post again.
you have to install "bluez-utils-test" package.
1.download
http://repository.maemo.org/extras/p...sso6_armel.deb
2. "dpkg -i /your/download/dir/bluez-utils-test_3.28-0osso6_armel.deb"
</del>

thank you for your testing.

sun4384 2015-10-25 06:16

Re: a2recv-esd Turns Your N8xx Into a A2DP speaker/headset
 
Sorry for waking up an old thread, but is there anyone who got this working? I went down to step #8 and got "Can't bind socket. Address already in use(98)" error message. BTW, I ran "sudo ./a2recv-esd" command.


All times are GMT. The time now is 16:59.

vBulletin® Version 3.8.8