From: Denys Dmytriyenko <denys@ti.com>
To: Ankur Tyagi <ankur.tyagi85@gmail.com>
Cc: meta-arago@arago-project.org
Subject: Re: Bluetooth agent can't get default adapter
Date: Thu, 17 Dec 2015 18:20:09 -0500 [thread overview]
Message-ID: <20151217232009.GP27464@edge> (raw)
In-Reply-To: <CADySD0E+jJHqmsx+MsO-hwVr0iioSYGgRzYVs3o8RT-TzLO90w@mail.gmail.com>
Any specific reason you are trying 3.14? Can you try 4.1 instead?
--
Denys
On Fri, Dec 18, 2015 at 11:38:40AM +1300, Ankur Tyagi wrote:
> Further debugged it to check dbus and bluez service
>
>
> dbus is running and service file is also present
>
> root@am335x-evm:~# cat /usr/share/dbus-1/system-services/org.bluez.service
> [D-BUS Service]
> Name=org.bluez
> Exec=/bin/false
> User=root
> SystemdService=dbus-org.bluez.service
>
> root@am335x-evm:~# cat /etc/dbus-1/system.d/bluetooth.conf
> <!-- This configuration file specifies the required security policies
> for Bluetooth core daemon to work. -->
> <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration
> 1.0//EN"
> "<a href="http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
> www.freedesktop.org/.../busconfig.dtd"></a>
> <busconfig>
> <!-- ../system.conf have denied everything, so we just punch some holes
> -->
> <policy user="root">
> <allow own="org.bluez"/>
> <allow send_destination="org.bluez"/>
> <allow send_interface="org.bluez.Agent"/>
> <allow send_interface="org.bluez.PasskeyAgent"/>
> </policy>
>
> <policy context="default">
> <allow own="org.bluez"/>
> <allow send_destination="org.bluez"/>
> <allow send_interface="org.bluez.Agent"/>
> </policy>
>
> </busconfig>
>
>
> When I run bluetoothd, I can see org.bluez in dbus list
>
> root@am335x-evm:~# dbus-send --system --dest=org.freedesktop.DBus
> --type=method_call --print-reply /org/freedesktop/DBus
> org.freedesktop.DBus.ListNames
> method return sender=org.freedesktop.DBus -> dest=:1.4 reply_serial=2
> array [
> string "org.freedesktop.DBus"
> string ":1.4"
> string ":1.0"
> string "org.bluez"
> ]
>
> But when I query default adapter, I don't get a response
>
> root@am335x-evm:~# dbus-send --system --print-reply --dest=org.bluez /
> org.bluez.Manager.ListAdapters
> method return sender=:1.0 -> dest=:1.5 reply_serial=2
> array [
> ]
>
> What's missing to get it working ? Any help is appreciated
>
> Thanks
> Ankur
>
> "Knowledge is knowing tomato is a fruit, wisdom is not putting it in a
> fruit salad"
>
> On Thu, Dec 17, 2015 at 7:24 PM, Ankur Tyagi <ankur.tyagi85@gmail.com>
> wrote:
>
> >
> > Hi,
> >
> > I am trying to use WL1835 bluetooth with AM335x EVM. Software is
> > meta-arago daisy.
> >
> > When I run bluetooth agent, I get error "Can't get default adapter"
> >
> > Following is the sequence of commands:
> >
> > root@am335x-evm:~# bluetoothd
> >
> > root@am335x-evm:~# hciconfig hci0 up
> >
> > [ 944.008593] (stc): chnl_id list empty :4
> > [ 944.012749] (stk) : st_kim_start(stk) :ldisc_install = 1uim:poll broke
> > due to event 10(PRI:2/ERR:8)
> >
> > uim:read 1 from install
> >
> > uim:@ st_uart_config
> > uim: signal received, opening /dev/ttyS1
> > uim:@ set_baud_rate
> > uim:set_baud_rate() done
> > uim:Setting speed to 3000000
> > uim:@ read_command_complete
> > uim: Command complete started
> > uim:@ read_hci_event
> > uim: read_hci_event
> > uim:Command complete done
> > [ 944.180311] (stc): st_tty_open
> > uim:Speed changing to 3000000, 1
> > uim:@ set_custom_baud_rate
> > (stk) :line discipline installeduim:Installed N_TI_WL Line displine
> > [ 944.194437] (stk) :TIInit_11.8.32.bts
> > uim:begin polling...
> > (stk) :change remote baud rate command in firmware
> > [ 944.214516] (stk) :skipping the wait event of change remote baud[
> > 944.928331] (stc): add_channel_to_table: id 4
> > [ 944.932771] (stc): add_channel_to_table: id 2
> > [ 944.937149] (stc): add_channel_to_table: id 3
> >
> > root@am335x-evm:~# hcitool scan
> > Scanning ...
> > 00:02:72:E3:0F:7F RS232 Dongle Slave
> >
> > root@am335x-evm:~# agent hci0 00:02:72:E3:0F:7F
> > Can't get default adapter
> > No such adapter
> >
> > root@am335x-evm:~# dmesg | grep Bluetooth
> > [ 3.475348] Bluetooth: Core ver 2.18
> > [ 3.483613] Bluetooth: HCI device and connection manager initialized
> > [ 3.663793] Bluetooth: HCI socket layer initialized
> > [ 3.668731] Bluetooth: L2CAP socket layer initialized
> > [ 3.814838] Bluetooth: SCO socket layer initialized
> > [ 16.667945] Bluetooth: st_register failed -22
> >
> > What am I missing here ?
> >
> > thanks
> > Ankur
> >
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
next prev parent reply other threads:[~2015-12-17 23:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-17 6:24 Bluetooth agent can't get default adapter Ankur Tyagi
2015-12-17 22:38 ` Ankur Tyagi
2015-12-17 23:20 ` Denys Dmytriyenko [this message]
2015-12-17 23:58 ` Ankur Tyagi
2016-01-06 21:19 ` Ankur Tyagi
-- strict thread matches above, loose matches on Subject: below --
2015-12-17 22:40 Ankur Tyagi
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=20151217232009.GP27464@edge \
--to=denys@ti.com \
--cc=ankur.tyagi85@gmail.com \
--cc=meta-arago@arago-project.org \
/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.