Active Topics

 



Notices


Reply
Thread Tools
t_moyashi's Avatar
Posts: 49 | Thanked: 102 times | Joined on Jul 2009 @ 驚く為五郎
#1
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 a2recv-esd.tar.gz *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
Attached Files
File Type: gz a2recv-esd.gz (21.1 KB, 284 views)
File Type: txt a2recv-esd.c.txt (15.8 KB, 1041 views)

Last edited by t_moyashi; 2009-08-02 at 00:36. Reason: fix
 

The Following 10 Users Say Thank You to t_moyashi For This Useful Post:
jalladin's Avatar
Posts: 283 | Thanked: 31 times | Joined on Jun 2009 @ US Air Force
#2
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
__________________
Search "may help find answers"
N900 FAQ (wiki)
Google Wave User
 
Posts: 1,213 | Thanked: 355 times | Joined on Jan 2008 @ California and Virginia
#3
What does "sdptool add A2SNK" do exactly?

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

www.ezschool.com - The best online educational experience.
 
t_moyashi's Avatar
Posts: 49 | Thanked: 102 times | Joined on Jul 2009 @ 驚く為五郎
#4
excuse me, I took it from http://bluetooth-alsa.sourceforge.net/
Originally Posted by jalladin View Post
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's Avatar
Posts: 49 | Thanked: 102 times | Joined on Jul 2009 @ 驚く為五郎
#5
Originally Posted by Thesandlord View Post
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)
 

The Following 4 Users Say Thank You to t_moyashi For This Useful Post:
speculatrix's Avatar
Posts: 880 | Thanked: 264 times | Joined on Feb 2007 @ Cambridge, UK
#6
Originally Posted by jalladin View Post
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!
__________________
Fujitsu U820, HTC Vision/G2/DesireZ, Nokia N800 770 E71, Zaurus 6000, Palm T3, Zaurus C3100 - stolen
 

The Following 2 Users Say Thank You to speculatrix For This Useful Post:
Posts: 63 | Thanked: 7 times | Joined on Jan 2008
#7
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's Avatar
Posts: 283 | Thanked: 31 times | Joined on Jun 2009 @ US Air Force
#8
Originally Posted by speculatrix View Post
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.
__________________
Search "may help find answers"
N900 FAQ (wiki)
Google Wave User

Last edited by jalladin; 2009-08-01 at 07:02.
 
t_moyashi's Avatar
Posts: 49 | Thanked: 102 times | Joined on Jul 2009 @ 驚く為五郎
#9
Originally Posted by tj110158 View Post
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.

Last edited by t_moyashi; 2009-08-01 at 12:23.
 

The Following User Says Thank You to t_moyashi For This Useful Post:
Posts: 23 | Thanked: 2 times | Joined on Jul 2009
#10
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.
 
Reply

Tags
a2dp, bluetooth, headset, speaker

Thread Tools

 
Forum Jump


All times are GMT. The time now is 00:23.