All of lore.kernel.org
 help / color / mirror / Atom feed
From: pramod gurav <pramod_gurav_etc@yahoo.co.in>
To: bluez-devel <bluez-devel@lists.sourceforge.net>,
	Bluez-users@lists.sourceforge.net
Subject: [Bluez-users] Headset not playing audio HELP PLEASE
Date: Fri, 8 Feb 2008 10:10:49 +0530 (IST)	[thread overview]
Message-ID: <611951.12552.qm@web8407.mail.in.yahoo.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 7623 bytes --]

hi All
Trying to play audio on my headset HBH-600.
When I play audio using mplayer it looks all fine from logs but sound is not played on headset
[Pramod@localhost ~]$ mplayer_install/bin/mplayer -ao alsa:device=bluetooth 1.mp3 MPlayer 1.0rc2-4.1.1 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Playing 1.mp3.
Audio file file format detected.
Clip info:
 Title: Dream Girl
 Artist: EM Inc.
 Album: Kishore Kumar - LEGEND Vol 5
 Year:
 Comment: Visit: http://welcome.to/eminc
 Genre: Other
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 8000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
[AO_ALSA] Write error: Resource temporarily unavailable
[AO_ALSA] Trying to reset soundcard.
[AO_ALSA] Write error: Resource temporarily unavailable
[AO_ALSA] Trying to reset soundcard.
A:   1.1 (01.1) of 356.0 (05:56.0) 13.9%

************
On the console where i run the audio service I get these log
audio[3032]: Accepted new client connection on unix socket (fd=9) audio[3032]: Audio API: received BT_GETCAPABILITIES_REQ
audio[3032]: Got path /org/bluez/hci0 for adapter with address 00:0B:0D:33:9E:FB
audio[3032]: /org/bluez/hci0 GetRemoteName(): Not available
Passkey request for device 00:0F:DE:B1:02:42
audio[3032]: Audio service discovery completed with success
audio[3032]: Found Headset record
audio[3032]: Discovered Headset service on RFCOMM channel 1
audio[3032]: Selecting default device
audio[3032]: Audio API: sending BT_GETCAPABILITIES_RSP
audio[3032]: Audio API: received BT_SETCONFIGURATION_REQ
audio[3032]: config sbc - frequency = 0 channel_mode = 0 allocation = 0 subbands = 0 blocks = 0 bitpool = 0
audio[3032]: State changed /org/bluez/audio/device0: HEADSET_STATE_DISCONNECTED -> HEADSET_STATE_CONNECT_IN_PROGRESS
audio[3032]: /org/bluez/audio/device0: Connecting to 00:0F:DE:B1:02:42 channel 1
audio[3032]: State changed /org/bluez/audio/device0: HEADSET_STATE_CONNECT_IN_PROGRESS -> HEADSET_STATE_CONNECTED
audio[3032]: /org/bluez/audio/device0: Connected to 00:0F:DE:B1:02:42
audio[3032]: State changed /org/bluez/audio/device0: HEADSET_STATE_CONNECTED -> HEADSET_STATE_PLAY_IN_PROGRESS
audio[3032]: Received AT*ECBP=?
audio[3032]: Badly formated or unrecognized command: AT*ECBP=?
audio[3032]: Received AT+CLIP=1
audio[3032]: Received AT+CSCS="UTF-8"
audio[3032]: Badly formated or unrecognized command: AT+CSCS="UTF-8"
audio[3032]: Received AT+CLAN?
audio[3032]: Badly formated or unrecognized command: AT+CLAN?
audio[3032]: SCO socket opened for headset /org/bluez/audio/device0
audio[3032]: SCO fd=11
audio[3032]: Audio API: sending BT_SETCONFIGURATION_RSP
audio[3032]: State changed /org/bluez/audio/device0: HEADSET_STATE_PLAY_IN_PROGRESS -> HEADSET_STATE_PLAYING
audio[3032]: Audio API: received BT_STREAMSTART_REQ
audio[3032]: Audio API: sending BT_STREAMSTART_RSP
audio[3032]: Audio API: sending BT_STREAMFD_IND
audio[3032]: Received AT+VGS=15
audio[3032]: Received AT+VGS=14
audio[3032]: Received AT+VGS=12
audio[3032]: Audio API: received BT_STREAMSTART_REQ
audio[3032]: Audio API: sending BT_STREAMSTART_RSP
audio[3032]: Audio API: sending BT_STREAMFD_IND
audio[3032]: Audio API: received BT_STREAMSTART_REQ
audio[3032]: Audio API: sending BT_STREAMSTART_RSP
audio[3032]: Audio API: sending BT_STREAMFD_IND
audio[3032]: Unix client disconnected (fd=9)
audio[3032]: State changed /org/bluez/audio/device0: HEADSET_STATE_PLAYING -> HEADSET_STATE_DISCONNECTED


These are contents of some files.....
# HCI daemon configuration file.
# HCId options
options {
         autoinit yes;
          security user;
        pairing multi;
#       passkey "0000";
} 

device {
        name "MyBD";
        class 0x000100;
        #pkt_type
 DH1,DM1,HV1;
        iscan enable; pscan enable;
        lp rswitch,hold,sniff,park;
}
/etc/bluetooth/audio.service

[Bluetooth Service]
Identifier=audio
Name=Audio service
Description=Bluetooth Audio service
Autostart=false

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

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

I run following commands
[root@localhost ~]# /etc/init.d/bluetooth start   ---------- without -s option
[root@localhost ~]# ps -ea | grep sdpd
[root@localhost ~]# /usr/local/lib/bluetooth/bluetoothd-service-audio &
[1]
 4472
[root@localhost ~]# audio[4472]: Bluetooth Audio daemon
audio[4472]: Unix socket created: 5
audio[4472]: audio.conf: /etc/bluetooth/audio.conf: key Enable not found
audio[4472]: audio.conf: /etc/bluetooth/audio.conf: key Disable not found
audio[4472]: add_service_record: got record id 0x10000
audio[4472]: audio.conf: /etc/bluetooth/audio.conf: key Disable not found
audio[4472]: audio.conf: /etc/bluetooth/audio.conf: group A2DP not found
audio[4472]: audio.conf: /etc/bluetooth/audio.conf: group A2DP not found
audio[4472]: audio.conf: /etc/bluetooth/audio.conf: group 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
audio[4472]: add_service_record: got record id 0x10002
audio[4472]: add_service_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 -----------
                                                HCID
Feb  7 11:07:51 localhost hcid[32128]: Bluetooth HCI daemon
Feb  7 11:07:51 localhost hcid[32128]: HCI dev 0 registered
Feb  7 11:07:51 localhost hcid[32128]: HCI dev 0 already up
Feb  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:abstract=/var/run/dbus-KmH44CDyJ1,guid=2f99aa4799c1691555c6259fb275d700
Feb  7 11:07:51 localhost input[32132]: Bluetooth Input
 daemon
Feb  7 11:07:51 localhost input[32132]: Registered input manager path:/org/bluez/input
                                            SDPD
Feb  7 11:08:23 localhost sdpd[32136]: Bluetooth SDP daemon
Feb  7 11:08:23 localhost sdpd[32136]: Starting SDP server
                                            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 localhost audio[32141]: Registered manager path:/org/bluez/audio

I also run passkey agent with default pass key 0000.
(The thing work after this only. )
I hear a sound on headset but thats not what i am playing.

Can anyone give me suggestion on what i am missing???????/
 
Thanks and Best regards 
Pramod





      Now you can chat without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php

[-- Attachment #1.2: Type: text/html, Size: 9287 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

             reply	other threads:[~2008-02-08  4:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-08  4:40 pramod gurav [this message]
2008-02-08 16:19 ` [Bluez-users] Headset not playing audio HELP PLEASE Guillaume Bedot
2008-02-08 23:08 ` jayjwa
  -- strict thread matches above, loose matches on Subject: below --
2008-02-11 10:07 pramod gurav
2008-02-12 12:47 ` jayjwa
2008-02-13  5:27 pramod gurav
2008-02-14 14:22 ` jayjwa
2008-02-15  4:49 pramod gurav
2008-02-15  8:52 ` jayjwa
2008-02-15  5:21 pramod gurav
2008-02-15 13:29 ` jayjwa
2008-02-15 14:21 pramod gurav
2008-02-17 10:20 ` jayjwa
2008-02-18 13:16 pramod gurav
2008-02-18 13:38 ` Guillaume Bedot
2008-02-18 14:41 Guillaume Bedot
2008-02-19  4:21 pramod gurav
2008-02-19  6:03 ` jayjwa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=611951.12552.qm@web8407.mail.in.yahoo.com \
    --to=pramod_gurav_etc@yahoo.co.in \
    --cc=Bluez-users@lists.sourceforge.net \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.