2014-11-11 13:20:13

by Gowtham Anandha Babu

[permalink] [raw]
Subject: Query regarding sdptool

Hi All,

I am currently testing sdptool.
The issues I am facing are,

1) When I run ./sdptool del PBAP, I am getting the below error:
" No local SDP server!"

2) When I run ./sdptool get PBAP, I am getting the below error:
"Failed to connect to SDP server on FF:FF:FF:00:00:00: Connection refused"

3) when I run ./sdptool add PBAP, Nothing is printing, I don't know whether
it is added or not.

Bluetoothd is running and hci0 is up. Is there any file/script that I need
to run to make Local SDP server UP?

Regards,
Gowtham Anandha Babu



2014-11-12 12:55:23

by Gowtham Anandha Babu

[permalink] [raw]
Subject: RE: Query regarding sdptool

Hi Luiz,

> -----Original Message-----
> From: [email protected] [mailto:linux-bluetooth-
> [email protected]] On Behalf Of Luiz Augusto von Dentz
> Sent: Tuesday, November 11, 2014 8:03 PM
> To: Gowtham Anandha Babu
> Cc: [email protected]; Bharat Panda; [email protected];
> Dmitry Kasatkin
> Subject: Re: Query regarding sdptool
>
> Hi Gowtham,
>
> On Tue, Nov 11, 2014 at 3:20 PM, Gowtham Anandha Babu
> <[email protected]> wrote:
> > Hi All,
> >
> > I am currently testing sdptool.
> > The issues I am facing are,
> >
> > 1) When I run ./sdptool del PBAP, I am getting the below error:
> > " No local SDP server!"
> >
> > 2) When I run ./sdptool get PBAP, I am getting the below error:
> > "Failed to connect to SDP server on FF:FF:FF:00:00:00: Connection refused"
> >
> > 3) when I run ./sdptool add PBAP, Nothing is printing, I don't know
> > whether it is added or not.
> >
> > Bluetoothd is running and hci0 is up. Is there any file/script that I
> > need to run to make Local SDP server UP?
>
> First of all you are not suppose to interact with SDP database using sdptool,
> these commands have been deprecated long long time ago. If you want to
> test just registering and removing a record it is probably better to use
> test/test-profile. If you want to check local records with sdptool you need to
> run bluetooth with -C/--compat option and root permissions e.g. sudo
> sdptool browse local.
>
>
> --
> Luiz Augusto von Dentz
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to [email protected] More majordomo
> info at http://vger.kernel.org/majordomo-info.html


Thanks for your information.
Btw I have added the MAP service implementation in sdptool (add, del, get). Just now I tested it, it's working fine for all cases.
Soon I will be sending it.

Regards,
Gowtham Anandha Babu


2014-11-11 14:32:38

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: Query regarding sdptool

Hi Gowtham,

On Tue, Nov 11, 2014 at 3:20 PM, Gowtham Anandha Babu
<[email protected]> wrote:
> Hi All,
>
> I am currently testing sdptool.
> The issues I am facing are,
>
> 1) When I run ./sdptool del PBAP, I am getting the below error:
> " No local SDP server!"
>
> 2) When I run ./sdptool get PBAP, I am getting the below error:
> "Failed to connect to SDP server on FF:FF:FF:00:00:00: Connection refused"
>
> 3) when I run ./sdptool add PBAP, Nothing is printing, I don't know whether
> it is added or not.
>
> Bluetoothd is running and hci0 is up. Is there any file/script that I need
> to run to make Local SDP server UP?

First of all you are not suppose to interact with SDP database using
sdptool, these commands have been deprecated long long time ago. If
you want to test just registering and removing a record it is probably
better to use test/test-profile. If you want to check local records
with sdptool you need to run bluetooth with -C/--compat option and
root permissions e.g. sudo sdptool browse local.


--
Luiz Augusto von Dentz