Rupinder Singh | 18 Dec 17:46
Picon

Introduction

Hi,

I have a good experience of g++ and have worked with bluetooth protocols using J2ME. Kindly guide me as to where do I begin before getting into blueZ development.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Bluez-devel mailing list
Bluez-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Christian Hoene | 8 Dec 09:48
Picon

SBC debugging takes place here

Hello,

we are trying to fix the SBC bugs here:
http://github.com/hoene/bluez-sbc/tree/sbc.debugging
Question? Meet me at Skype "christian.hoene"

Regards,
  Christian

--------------------------------------------------------
Dr.-Ing. Christian Hoene
Computer Networks and Internet, University of Tübingen
Sand 13, 72076 Tübingen, Germany, Phone +49 7071 2970532
http://net.informatik.uni-tuebingen.de/~hoene

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/

Continued SCO audio issues...


I posted a while back about having some issues getting SCO audio to work 
on some Compulab em-x270 boards. Well, we're still not there, but we've 
tried a lot more things. I'm going to describe the problem in some more 
detail now in the hopes that somebody here can help point me in a 
direction to get this working.

Symptoms:

  - Everything involved (bt headset, ALSA, aplay/mplayer/pulseaudio, 
etc) seems to think everything is working.
  - No sound comes out of the headset. We hear a hissing from the 
headset during actual audio playback (or when I have pulseaudio talking 
to it via 'module-alsa-sink' and the sink is not suspended).

Config(s) Tested:

 - Kernels: 2.6.23, 2.6.26, 2.6.27
 - Bluez: 3.26, 3.36, 4.12, 4.18
 - ALSA drivers: as shipped w/ kernels above

We've been through about every possible combination of the above. We've 
tried hci_usb and btusb. We've tested with 3 models of bt headset and 2 
development boards. For some reason, the ONLY place I can make SCO audio 
work is under a stock Ubuntu 8.10 (which uses Bluez 4.12, kernel 2.6.27, 
and ALSA 1.0.17 for the record).

I'm stumped. Here is some sample output from various pieces as we try to 
play a file. Right now we're using Bluez 3.36 (getting 4.x running on 
this platform was a bit of a PITA and was somewhat unstable so we backed 
out to what currently ships with openembedded)

We've tried with separate USB dongles (using the same chipset, that 
works under Ubuntu 8.10) so it's not the onboard BT chipset...

# hciconfig hci0 version
hci0:    Type: USB
    BD Address: 00:02:5B:00:A5:A5 ACL MTU: 310:10 SCO MTU: 64:8
    HCI Ver: 2.0 (0x3) HCI Rev: 0xc5c LMP Ver: 2.0 (0x3) LMP Subver: 0xc5c
    Manufacturer: Cambridge Silicon Radio (10)

# hciconfig hci0 revision
hci0:    Type: USB
    BD Address: 00:02:5B:00:A5:A5 ACL MTU: 310:10 SCO MTU: 64:8
    Unified 21e
    Chip version: BlueCore4-ROM
    Max key size: 128 bit
    SCO mapping:  PCM

~/.asoundrc:

pcm.bt {
        type bluetooth
        device 00:0B:2E:D5:27:DA
        profile voice
}

pcm.rbt {
        type plug
        slave {
                pcm bt
        }
}

/etc/bluetooth/audio.conf:
[General]
SCORouting=PCM

[Headset]
HFP=false

Pertinent output of "hcid -n -d" (this is what happens when I actually 
try to play audio with "aplay -D bt -f S16_LE test.wav". Yes, the test 
wavfile is 8Khz S16_LE PCM WAV audio):

hcid[1383]: Accepted new client connection on unix socket (fd=22)
hcid[1383]: Audio API: received BT_GETCAPABILITIES_REQ
hcid[1383]: Audio API: sending BT_GETCAPABILITIES_RSP
hcid[1383]: Audio API: received BT_SETCONFIGURATION_REQ
hcid[1383]: config sco - device = 00:0B:2E:D5:27:DA access_mode = 2
hcid[1383]: State changed /org/bluez/audio/device0: 
HEADSET_STATE_DISCONNECTED -> HEADSET_STATE_CONNECT_IN_PROGRESS
hcid[1383]: /org/bluez/audio/device0: Connecting to 00:0B:2E:D5:27:DA 
channel 2
hcid[1383]: link_key_request (sba=00:02:5B:00:A5:A5, dba=00:0B:2E:D5:27:DA)
hcid[1383]: kernel auth requirements = 0x00
hcid[1383]: stored link key type = 0x00
hcid[1383]: /org/bluez/audio/device0: Connected to 00:0B:2E:D5:27:DA
hcid[1383]: State changed /org/bluez/audio/device0: 
HEADSET_STATE_CONNECT_IN_PROGRESS -> HEADSET_STATE_CONNECTED
hcid[1383]: State changed /org/bluez/audio/device0: 
HEADSET_STATE_CONNECTED -> HEADSET_STATE_PLAY_IN_PROGRESS
hcid[1383]: SCO socket opened for headset /org/bluez/audio/device0
hcid[1383]: SCO fd=24
hcid[1383]: Audio API: sending BT_SETCONFIGURATION_RSP
hcid[1383]: State changed /org/bluez/audio/device0: 
HEADSET_STATE_PLAY_IN_PROGRESS -> HEADSET_STATE_PLAYING
hcid[1383]: Audio API: received BT_STREAMSTART_REQ
hcid[1383]: Audio API: sending BT_STREAMSTART_RSP
hcid[1383]: Audio API: sending BT_STREAMFD_IND
hcid[1383]: Unix client disconnected (fd=22)
hcid[1383]: State changed /org/bluez/audio/device0: 
HEADSET_STATE_PLAYING -> HEADSET_STATE_CONNECTED
hcid[1383]: State changed /org/bluez/audio/device0: 
HEADSET_STATE_CONNECTED -> HEADSET_STATE_DISCONNECTED

I'm open to any suggestions. If more info is needed, tell me what you'd 
like to see and I'll post it up.

Thanks in advance,

-d

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
Evgenios Metaxas | 4 Dec 16:39
Picon
Favicon

MA-720 does not work

Hello,

I have a MA720 mobile action bluetooth usb tongle that does not work under ubuntu 7.04-8.10 and OpenSuse.
I have tried different how-to but none worked.
Googling around found that many had problems with that dongle. MA700 is supported but not MA720.
I also found that post
http://thread.gmane.org/gmane.linux.bluez.devel/13515

my lsusb is
Bus 002 Device 004: ID 0df7:0722 Mobile Action Technology, Inc.

dmesg

[ 4634.001887] usb 2-2: new low speed USB device using uhci_hcd and address 4
[ 4634.184129] usb 2-2: configuration #1 chosen from 1 choice

and

/proc/bus/usb/devices
bash: /proc/bus/usb/devices: No such file or directory

Currently i am in Ubuntu 8.04, all updates done, compaq nx9010 laptop.
Other usb tongles that i have tested worked

Thanx

Metaxas Eugenios



Connect to the next generation of MSN Messenger  Get it now!
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
WanYan, Uranus | 1 Dec 02:41
Picon

StartDiscovery doesn't exist

Hello Every Developer;

	I am appreciating for your answer my question about "What's the
API different between inadapter-api.txt and dbus-api.txt in
bluez-utils-3.36.tar.gz".
	
	Now I develop application with Bluez 4.x. But something happens
abnormally. 
When I call function StartDiscovery over python-dbus, the system raise a
error:

File "/usr/lib/python2.5/site-packages/dbus/connection.py", line 607, in
call_blocking message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod:
Method "StartDiscovery" with signature "" on interface
"org.bluez.Adapter" doesn't exist

But the SetProperty, GetProperty are all right(These functions all come
from bluez4.x/doc/adapter-api.txt ).

	So I think maybe there are some librarys or other things version
too old.
	
	OS version:	Suse linux 11, 2.6.25.5-1.1-pae
	Daemon name: 	hcid
	
	So what's the problem? (Need I change the daemon hcid to
bluetoothd? If I need, how to do)

Thank you very much!

Uranus

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
WanYan, Uranus | 25 Nov 02:57
Picon

What's the API different between in adapter-api.txt and dbus-api.txt in bluez-utils-3.36.tar.gz

Hello Every Developer;

          I am a fresh man in bluez. I studied bluez through
http://wiki.bluez.org/. 

          But now I am confused by the bluez documentation. BlueZ D-Bus
Adapter API were described in adapter-api(bluez-utils-3.36\doc). Also
they were described in dbus-api.txt(bluez-utils-3.36\hcid). Please
reference attachment.

          So could you tell me why there are two documents describing
Adapter API? 

  Thank you for your help!

Uranus

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Li, Zhigang | 21 Nov 09:10
Picon
Favicon

What's the maximum size of file by FTP transfer

HI Vinicius,

I have one problem for bigger file transfer.

I can’t transfer 9MB .mp3 file but 1MB file is ok by FTP.

I know it’s difficult to transfer a bigger file which more than 10MB by Bluetooth.

I used latest release version in bluez.org.

It even can’t open the file, it’s not file self problem.

fd = open(filename, O_RDONLY);

What’s the limitation in ftp client side? I saw the size should be 2GB.

Do you have same problem? Or any idea/

Thanks

 

 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Liu, Raymond | 20 Nov 03:57
Picon
Favicon

could not uses introspect in obexd client for session or ftp from the root path.

Hi Vinicius
	
	I am trying to use the obex-client for ftp recent days.
	I found that after I call the CreateSession method. The data return by introspect method is not updated in
the root path.
	Say, I can only use dbus-send --print-reply --dest=org.openobex.client /org/openobex/session0
org.freedesktop.DBus.Introspectable.Introspect to find out the ftp method.
	But dbus-send --print-reply --dest=org.openobex.client /
org.freedesktop.DBus.Introspectable.Introspect will not show that there are a /org/openobex node
under this path. So it might not be easy for a user to know what kind of interfaces is provided for the whole
org.openobex.client service. Since they will not know what's the right node path name.
	
	I guess we can add a node, or child field, and a parent field in the generic_data structure, and update these
information during the interface register operation, so that the introspect method can show the child
node under a certain path?

Best Regards,
Raymond Liu

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Yuriy Vikulov | 19 Nov 18:07
Picon
Favicon

Connection proccess

Hi all

Can you tell me, please, how many concurrent connections  (i mean proccess of connection) can be done on one dongle?

for example:

hcitool con
Connections:
        < ACL 00:1C:9A:6E:27:4A handle 0 state 5 lm MASTER
        < ACL 00:16:BC:31:EE:2E handle 0 state 5 lm MASTER
        < ACL 00:16:B8:AE:75:7E handle 3 state 1 lm MASTER
        < ACL 00:18:0F:AC:BF:EE handle 2 state 1 lm MASTER
        < ACL 00:1E:4C:D4:0C:52 handle 1 state 1 lm MASTER

Does "handle 0" mean that there is a try of low level connection?

I've not seen "handle 0" more then 3 times.

P.S

yuriy <at> yuriyv:~$ uname -a
Linux yuriyv 2.6.26-1-686 #1 SMP Thu Oct 9 15:18:09 UTC 2008 i686 GNU/Linux

hcitool - HCI Tool ver 3.36

Best regards,
Yuriy

--
             С уважением,

            Юрий Викулов

     Ведущий программист

 Вкусные мобильные сервисы

Офис:                 +7 (495) 780-9238

Мобильный:        +7 (916) 194 2711

vikulov <at> jami.ru    |    www.jami.ru

              logo-jami-small

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Christian Hoene | 17 Nov 16:57
Picon

Bug in SBC

Hello,

Let me forward some comments from Frans de Bont, the inventor of SBC. He
found a bug in the encoder but is not allowed to change the BlueZ
implementation. Thus, I forward you his error description because these
weeks I hardly have any time to look at the source code myself and - I have
to admit - I am getting older and coding lazy.

With best regards,

 Christian Hoene

PS:
Here Frans comments:

I also have taken a quick look into the filtering part of the encoder. It
seems that this code does not behave as the reference code. Unfortunately, I
cannot disclose this part of the reference source code. However, if someone
wants to correct this, the flow chart in the MPEG-1 Audio standard could be
taken as an example with slightly difference parameters, i.e. subbands=32
and filterlength=512.

You can find the referred flow chart in Figure C.4 on page 78 (in my version
of the ISO/IEC 11172-3 standard). Please note that the decoder flow charts
in A2DP have been derived from Figure A.2 on page 39.

You can find ... public version on:
http://www.mp3-tech.org/programmer/docs/iso11172-3.zip

For the encoder filterbank, you can find this in annex_c.doc, page 13,
FIGURE 3-C.2, "Layer I, II encoder flow chart".
The decoder filterbank is shown in annex_ab.doc, page 2, Figure 3-A.3,
"Layer III decoder flow chart".

BTW, I noticed that earlier versions of the Bluez SBC codec are indeed based
on the MPEG-1 flow charts. Probably the conversion from floating-point to
fixed-point has introduced the quality degradation.

Best regards,
Frans

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Jelle de Jong | 16 Nov 11:35
Picon

possible sbc codec bug with audio glitches

Hello everybody,

At celinux 2008 this month I talked to Marcel Holtmann and showed him
some issues I encountered with bluez.

One of my bigger issues is that I got audio glitches when listing to
high quality audio (dvds) with an sensitive DJ bluetooth headset.

I let Marcel listen to the problem and he also hears them and things it
may be something with the SBC codec. But since Marcel is no expert on
the SBC codec part, we would like to ask for the help of others to solve
this issue.

The glitches/distortions can be heard on a Motorola Bluetooth S805
stereo headset and listing to a dvd audio for example intro music of
Stargate Atlantis.

The strange thing is that I can only hear the glitches on the right side
of the headset.

I reported my first encounter with the issue on may 2008:
http://sourceforge.net/mailarchive/message.php?msg_name=4819B1A7.2070702%40powercraft.nl

I hope somebody would be willing/able to help out. I have seen some very
nice post about the bad performance of the SBC codec, and I hope you
guys can also have a look at this.

Best regards,

Jelle
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

Gmane