All of lore.kernel.org
 help / color / mirror / Atom feed
* Using ofono HFP
@ 2010-09-26 15:51 Moises Silva
  2010-09-27  0:26 ` Denis Kenzior
  0 siblings, 1 reply; 16+ messages in thread
From: Moises Silva @ 2010-09-26 15:51 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 3622 bytes --]

Hi there,

Bluetooth newbie here, try to be gentle :-)

I am trying to use ofono HFP. But I am not having success so far.

I have Fedora release 13 in vmware fusion virtual machine (the host is a mac
book pro). When I connect my usb bluetooth adapter and bridge it to the vm,
bluez detects it just fine and I can see it with hciconfig.

hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:15:83:15:A3:10  ACL MTU: 672:3  SCO MTU: 128:2
        UP RUNNING PSCAN
        RX bytes:4726 acl:46 sco:0 events:140 errors:0
        TX bytes:1555 acl:74 sco:0 commands:39 errors:0

I can see my cell phone using "hcitool scan" and the HF Voice Gateway
service using "sdtool browse", the service is at channel 4.

The information retrieved from my cell is:

root(a)fedora test # hcitool info 00:1D:28:4B:9A:A8
Requesting information ...
        BD Address:  00:1D:28:4B:9A:A8
        Device Name: Moycell
        LMP Version: 1.2 (0x2) LMP Subversion: 0x41c
        Manufacturer: Philips Semiconductors (37)
        Features: 0xff 0xed 0x8d 0xf8 0x1a 0x08 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot
offset>
                <timing accuracy> <role switch> <hold mode> <sniff mode>
                <park state> <channel quality> <SCO link> <HV3 packets>
                <u-law log> <A-law log> <CVSD> <power control>
                <transparent SCO> <broadcast encrypt> <enhanced iscan>
                <interlaced iscan> <interlaced pscan> <inquiry with RSSI>
                <extended SCO> <EV5 packets> <AFH cap. slave>
                <AFH class. slave> <AFH cap. master>

I paired my cell phone using blueman utilities. I was able to transfer a
file from linux to the cell phone. The cell phone sees the hands free
service from linux, but, when I try to connect from my cell phone to Linux,
I get this in /var/log/messages:

Sep 26 08:29:56 fedora bluetoothd[19854]: link_key_request
(sba=00:15:83:15:A3:10, dba=00:1D:28:4B:9A:A8)

And I get a prompt from blueman asking me to allow the cell phone to
connect, I accept and after a few seconds the cell phone reports the
bluetooth connection as failed. Nothing in /var/log/messages.

ofono version is 0.28

Output of rpm -qa | grep bluez is:

bluez-compat-4.64-1.fc13.i686
bluez-libs-devel-4.64-1.fc13.i686
bluez-alsa-4.64-1.fc13.i686
bluez-libs-4.64-1.fc13.i686
pybluez-0.16-2.fc13.i686
bluez-4.64-1.fc13.i686
bluez-hcidump-1.42-4.fc12.i686

dbus version is dbus-1.2.24-1.fc13.i686

I decided both bluez and ofono from latest git sources (latest as of 2 days
ago), and the only difference is I get an additional error after the
link_key_request:

bluetoothd[14120]: audio/headset.c:rfcomm_io_cb() ERR or HUP on RFCOMM
socket

I was advised by padovan on IRC that I should try dbus >= 1.3 ... I am going
to try that today, I was putting that off cuz this seemed like a lower level
issue and upgrading dbus seemed like non-trivial since many things depend on
dbus and fedora 13 does not seem to include rpm for dbus >= 1.3

Can I somehow to try ofono connect to my cell and not the other way around?

A few days ago I tried the project "nohands" (
http://nohands.sourceforge.net/), which connect to the cell phone just fine
and I am able to place and receive calls, but since the project looks like
kind of dead I decided to give ofono a try because looks more active.

The final goal here is NOT use this with pulseaudio, but rather have access
to the SCO socket so I can manipulate the audio.

Any advice will be certainly welcomed,

--
Moises Silva

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 4795 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-10-22 14:05 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-26 15:51 Using ofono HFP Moises Silva
2010-09-27  0:26 ` Denis Kenzior
2010-09-27  0:37   ` Moises Silva
2010-09-28  1:26   ` Zhang, Zhenhua
2010-09-28  2:45     ` Moises Silva
2010-09-28  3:23       ` Zhang, Zhenhua
2010-09-28  3:57         ` Moises Silva
2010-09-29  2:33     ` Moises Silva
2010-09-29  2:44       ` Zhang, Zhenhua
2010-09-29  2:50         ` Moises Silva
2010-09-29  2:50       ` Denis Kenzior
2010-10-02 22:27         ` Moises Silva
2010-10-08  3:25           ` Zhang, Zhenhua
2010-10-08 17:59             ` Moises Silva
2010-10-14 12:00               ` Pekka Pessi
2010-10-22 14:05                 ` Moises Silva

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.