From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 7 Feb 2008 11:12:30 +0530 (IST) From: Andrew William To: Bluez-devel@lists.sourceforge.net MIME-Version: 1.0 Message-ID: <247899.25747.qm@web94003.mail.in2.yahoo.com> Subject: [Bluez-devel] problem in audio service Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0402356292==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============0402356292== Content-Type: multipart/alternative; boundary="0-907927035-1202362950=:25747" --0-907927035-1202362950=:25747 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable hi All=0AI am following the Audio How To for audio device =0AThese are cont= ents of some files.....=0A# HCI daemon configuration file.=0A# HCId options= =0Aoptions {=0A autoinit yes;=0A security user;=0A = pairing multi;=0A# passkey "0000";=0A} =0A=0Adevice {=0A name = "MyBD";=0A class 0x000100;=0A #pkt_type=0A DH1,DM1,HV1;=0A = iscan enable; pscan enable;=0A lp rswitch,hold,sniff,park;=0A}= =0A/etc/bluetooth/audio.service=0A=0A[Bluetooth Service]=0AIdentifier=3Daud= io=0AName=3DAudio service=0ADescription=3DBluetooth Audio service=0AAutosta= rt=3Dfalse=0A=0Acat ~/.asoundrc=0Apcm.bluetooth {=0A type bluetooth= =0A device 00:0F:DE:B1:02:42 #headset address=0A}=0A=0Acat /etc/as= ound.conf=0A#Generated by system-config-soundcard, do not edit by hand=0A#S= WCONF=0A#DEV 0=0Adefaults.pcm.card 0=0Adefaults.pcm.device 0=0Adefaults.ctl= ..card 0=0A=0AI run following commands=0A[root@localhost ~]# /etc/init.d/blu= etooth start ---------- without -s option=0A[root@localhost ~]# ps -ea | = grep sdpd=0A[root@localhost ~]# /usr/local/lib/bluetooth/bluetoothd-service= -audio &=0A[1] 4472=0A[root@localhost ~]# audio[4472]: Bluetooth Audio daem= on=0Aaudio[4472]: Unix socket created: 5=0Aaudio[4472]: audio.conf: /etc/bl= uetooth/audio.conf: key Enable not found=0Aaudio[4472]: audio.conf: /etc/bl= uetooth/audio.conf: key Disable not found=0Aaudio[4472]: add_service_record= : got record id 0x10000=0Aaudio[4472]: audio.conf: /etc/bluetooth/audio.con= f: key Disable not found=0Aaudio[4472]: audio.conf: /etc/bluetooth/audio.co= nf: group A2DP not found=0Aaudio[4472]: audio.conf: /etc/bluetooth/audio.co= nf: group A2DP not found=0Aaudio[4472]: audio.conf: /etc/bluetooth/audio.co= nf: group A2DP not found=0Aaudio[4472]: audio.conf: /etc/bluetooth/audio.co= nf: group A2DP not found=0Aaudio[4472]: SEP 0x9795040 registered: type:0 co= dec:0 seid:1=0Aaudio[4472]: add_service_record: got record id 0x10001=0Aaud= io[4472]: add_service_record: got record id 0x10002=0Aaudio[4472]: add_serv= ice_record: got record id 0x10003=0Aaudio[4472]: Registered manager path:/o= rg/bluez/audio=0A/usr/local/lib/bluetooth/bluetoothd-service-audio &=0A[2] = 4604=0A=0A/var/log/messages are -----------=0A = HCID=0AFeb 7 11:07:51 localhost hcid[32128]: Bluetooth = HCI daemon=0AFeb 7 11:07:51 localhost hcid[32128]: HCI dev 0 registered=0A= Feb 7 11:07:51 localhost hcid[32128]: HCI dev 0 already up=0AFeb 7 11:07:= 51 localhost hcid[32128]: Device hci0 has been added=0AFeb 7 11:07:51 loca= lhost hcid[32128]: Starting security manager 0=0AFeb 7 11:07:51 localhost = hcid[32128]: Device hci0 has been activated=0AFeb 7 11:07:51 localhost hci= d[32128]: Created local server at unix:abstract=3D/var/run/dbus-KmH44CDyJ1,= guid=3D2f99aa4799c1691555c6259fb275d700=0AFeb 7 11:07:51 localhost input[3= 2132]: Bluetooth Input daemon=0AFeb 7 11:07:51 localhost input[32132]: Reg= istered input manager path:/org/bluez/input=0A = SDPD=0AFeb 7 11:08:23 localhost sdpd[32136]: Bluetooth SDP = daemon=0AFeb 7 11:08:23 localhost sdpd[32136]: Starting SDP server=0A = BT AUDIO DAEMON=0AFeb 7 11:09:04 lo= calhost audio[32141]: Bluetooth Audio daemon=0AFeb 7 11:09:04 localhost au= dio[32141]: Unix socket created: 5=0AFeb 7 11:09:04 localhost audio[32141]= : Registered manager path:/org/bluez/audio=0A=0ANow I tried running dbud co= mmands from Audio HowTo=0A=0AXYZ@localhost sbc]$ dbus-send --system --type= =3Dmethod_call --print-reply --dest=3Dorg.bluez /org/bluez org.bluez.Manage= r.ActivateService string:audio=0Amethod return sender=3D:1.56 -> dest=3D:1.= 59=0A string ":1.60"=0A=0AXYZ@localhost sbc]$ dbus-send --system --type= =3Dmethod_call --print-reply --dest=3D":1.59" /org/bluez/audio org.bluez.au= dio.Manager.CreateHeadset string:00:0F:DE:B1:02:42=0AError org.freedesktop.= DBus.Error.ServiceUnknown: The name :1.59 was not provided by any .service = files=0A=0AWhat is this error? Can someone tell me what is being missed her= e?=0A=0A=0AThank In advance=0AAndrew=0A=0A=0A=0A=0A=0A=0A=0A=0A Did yo= u know? You can CHAT without downloading messenger. Go to http://in.messeng= er.yahoo.com/webmessengerpromo.php/ --0-907927035-1202362950=:25747 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
hi All
I am following the Audio How To for audio de= vice
These are contents of some files.....
# HCI daemon configuratio= n file.
# HCId options
options {
     &nb= sp;   autoinit yes;
       =    security user;
        p= airing multi;
#       passkey "0000";
}=

device {
        name "MyBD"= ;
        class 0x000100;
 &n= bsp;      #pkt_type=0A DH1,DM1,HV1;
  = ;      iscan enable; pscan enable;
  =       lp rswitch,hold,sniff,park;
}
/etc/blu= etooth/audio.service

[Bluetooth Service]
Identifier=3Daudio
Na= me=3DAudio service
Description=3DBluetooth Audio service
Autostart=3D= false

cat ~/.asoundrc
pcm.bluetooth {
    =     type bluetooth
      &n= bsp; device 00:0F:DE:B1:02:42   #headset address
}

cat = /etc/asound.conf
#Generated by system-config-soundcard, do not edit by h= and
#SWCONF
#DEV 0
defaults.pcm.card 0
defaults.pcm.device 0defaults.ctl.card 0

I run following commands
[root@localhost ~]#= /etc/init.d/bluetooth start   ---------- without -s option
[r= oot@localhost ~]# ps -ea | grep sdpd
[root@localhost ~]# /usr/local/lib/= bluetooth/bluetoothd-service-audio &
[1] 4472
[root@localhost ~]# audio[4472]: Bluetooth Audio daemon
audio[4= 472]: Unix socket created: 5
audio[4472]: audio.conf: /etc/bluetooth/aud= io.conf: key Enable not found
audio[4472]: audio.conf: /etc/bluetooth/au= dio.conf: key Disable not found
audio[4472]: add_service_record: got rec= ord id 0x10000
audio[4472]: audio.conf: /etc/bluetooth/audio.conf: key D= isable not found
audio[4472]: audio.conf: /etc/bluetooth/audio.conf: gro= up A2DP not found
audio[4472]: audio.conf: /etc/bluetooth/audio.conf: gr= oup A2DP not found
audio[4472]: audio.conf: /etc/bluetooth/audio.conf: g= roup A2DP not found
audio[4472]: audio.conf: /etc/bluetooth/audio.conf: = group A2DP not found
audio[4472]: SEP 0x9795040 registered: type:0 codec= :0 seid:1
audio[4472]: add_service_record: got record id 0x10001
audi= o[4472]: add_service_record: got record id 0x10002
audio[4472]: add_serv= ice_record: got record id 0x10003
audio[4472]: Registered manager path:/org/bluez/audio
/usr/local/lib/bluetooth/bluetoothd-service-audio= &
[2] 4604

/var/log/messages are -----------
  =                 =                &nb= sp;  HCID
Feb  7 11:07:51 localhost hcid[32128]: Bluetooth HC= I daemon
Feb  7 11:07:51 localhost hcid[32128]: HCI dev 0 registere= d
Feb  7 11:07:51 localhost hcid[32128]: HCI dev 0 already up
Fe= b  7 11:07:51 localhost hcid[32128]: Device hci0 has been added
Feb=   7 11:07:51 localhost hcid[32128]: Starting security manager 0
Feb=   7 11:07:51 localhost hcid[32128]: Device hci0 has been activated
= Feb  7 11:07:51 localhost hcid[32128]: Created local server at unix:ab= stract=3D/var/run/dbus-KmH44CDyJ1,guid=3D2f99aa4799c1691555c6259fb275d700Feb  7 11:07:51 localhost input[32132]: Bluetooth Input daemon
Feb  7 11:07:51 localhost input[32132]: Registered input ma= nager path:/org/bluez/input
         = ;                &n= bsp;        SDPD
Feb  7 11:08:23 localh= ost sdpd[32136]: Bluetooth SDP daemon
Feb  7 11:08:23 localhost sdp= d[32136]: Starting SDP server
        &nb= sp;                =          BT AUDIO DAEMON
Feb  7 11= :09:04 localhost audio[32141]: Bluetooth Audio daemon
Feb  7 11:09:= 04 localhost audio[32141]: Unix socket created: 5
Feb  7 11:09:04 l= ocalhost audio[32141]: Registered manager path:/org/bluez/audio

Now = I tried running dbud commands from Audio HowTo

XYZ@localhost sbc]$ d= bus-send --system --type=3Dmethod_call --print-reply --dest=3Dorg.bluez /org/bluez org.bluez.Manager.ActivateService string:audio
method return= sender=3D:1.56 -> dest=3D:1.59
   string ":1.60"

XY= Z@localhost sbc]$ dbus-send --system --type=3Dmethod_call --print-reply --d= est=3D":1.59" /org/bluez/audio org.bluez.audio.Manager.CreateHeadset string= :00:0F:DE:B1:02:42
Error org.freedesktop.DBus.Error.ServiceUnknown: The = name :1.59 was not provided by any .service files

What is this error= ? Can someone tell me what is being missed here?


Thank In advanc= e
Andrew





=0A=0A=0A
Now you can chat without downloading messenger. Click here to know how. --0-907927035-1202362950=:25747-- --===============0402356292== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============0402356292== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============0402356292==--