2005-12-02 23:34:19

by Michael Gorbach

[permalink] [raw]
Subject: [Bluez-users] Errors from hcid

I've set up my dinovo bluetooth dongle after some playing around, using
hid2hci. It is working ok ... but I am getting errors every 5 or 10 minutes
in my 12th console and in /var/log/messages. They look like this:
Dec 2 18:21:16 swatBox hcid[11586]: Can't send D-BUS inquiry start message
Dec 2 18:21:20 swatBox hcid[11586]: Can't send D-BUS inquiry result message
Dec 2 18:21:24 swatBox hcid[11586]: Can't send D-BUS inquiry complete message
Dec 2 18:26:17 swatBox hcid[11586]: Can't send D-BUS inquiry start message
Dec 2 18:26:20 swatBox hcid[11586]: Can't send D-BUS inquiry result message
Dec 2 18:26:24 swatBox hcid[11586]: Can't send D-BUS inquiry complete message
Can anyone tell me what's going on here, and what i need to do to fix or at
least get some more info on what's going on?

Thanks,
Michael Gorbach


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2005-12-03 05:20:40

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Errors from hcid

Hi Michael,

> I've set up my dinovo bluetooth dongle after some playing around, using
> hid2hci. It is working ok ... but I am getting errors every 5 or 10 minutes
> in my 12th console and in /var/log/messages. They look like this:
> Dec 2 18:21:16 swatBox hcid[11586]: Can't send D-BUS inquiry start message
> Dec 2 18:21:20 swatBox hcid[11586]: Can't send D-BUS inquiry result message
> Dec 2 18:21:24 swatBox hcid[11586]: Can't send D-BUS inquiry complete message
> Dec 2 18:26:17 swatBox hcid[11586]: Can't send D-BUS inquiry start message
> Dec 2 18:26:20 swatBox hcid[11586]: Can't send D-BUS inquiry result message
> Dec 2 18:26:24 swatBox hcid[11586]: Can't send D-BUS inquiry complete message
> Can anyone tell me what's going on here, and what i need to do to fix or at
> least get some more info on what's going on?

what version of bluez-utils are you using and what kind of Linux
distribution is this?

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-23 16:51:07

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Bitstuffing in a Rfcomm connection?

Hi Agustin,

> Here's the situation. I have an open rfcomm connection which I use
> through a file descriptor, fd: fd = open(devname, O_RDWR | O_NOCTTY);
>
> I realized that the 'extra bytes' I was reading (using the read
> function) actually are some bytes that I'm periodically writing (using
> the write function) to this file descriptor. It's like I have an 'echo'
> of the bytes I write... I read all the incoming that AND the bytes I'm
> writing to this fd.

set the TTY into raw mode or use the RFCOMM socket directly.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-23 15:58:14

by Agustin Jose Fusaro

[permalink] [raw]
Subject: Re: [Bluez-users] Bitstuffing in a Rfcomm connection?

Hi Marcel,

Here's the situation. I have an open rfcomm connection which I use
through a file descriptor, fd: fd = open(devname, O_RDWR | O_NOCTTY);

I realized that the 'extra bytes' I was reading (using the read
function) actually are some bytes that I'm periodically writing (using
the write function) to this file descriptor. It's like I have an 'echo'
of the bytes I write... I read all the incoming that AND the bytes I'm
writing to this fd.

I'm taking a closer look at the documentation for these functions right
now...

Thanks a lot!!!
Agustin Fusaro - Apexar Technologies

On Wed, 2006-02-22 at 22:27 +0100, Marcel Holtmann wrote:
> Hi Agustin,
>
> > I'm writing an application that communicates using rfcomm connections.
> > This application communicates with mobile devices. In order to debug the
> > application I also wrote a mobile device emulator that runs in a
> > computer.
> >
> > Here's the problem:
> > When the application connects to the mobile device everything works
> > fine. But when the application connects to the computer emulating a
> > device, I obtain, mingled with the data the following bytes:
> > "00 5E 40". Sometimes these bytes are together. Some other times these
> > bytes are spreaded among the real data bytes. These additional bytes
> > keeps the application from synchronizing with the emulated device.
> >
> > My question is: when an rfcomm connection is stablished between two
> > computers, is there some bit/byte stuffing involved?
>
> provide is with a full "hcidump -X -V" for this problem, because I have
> no idea what you are talking about.
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-22 21:27:25

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Bitstuffing in a Rfcomm connection?

Hi Agustin,

> I'm writing an application that communicates using rfcomm connections.
> This application communicates with mobile devices. In order to debug the
> application I also wrote a mobile device emulator that runs in a
> computer.
>
> Here's the problem:
> When the application connects to the mobile device everything works
> fine. But when the application connects to the computer emulating a
> device, I obtain, mingled with the data the following bytes:
> "00 5E 40". Sometimes these bytes are together. Some other times these
> bytes are spreaded among the real data bytes. These additional bytes
> keeps the application from synchronizing with the emulated device.
>
> My question is: when an rfcomm connection is stablished between two
> computers, is there some bit/byte stuffing involved?

provide is with a full "hcidump -X -V" for this problem, because I have
no idea what you are talking about.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-22 21:14:41

by Agustin Jose Fusaro

[permalink] [raw]
Subject: [Bluez-users] Bitstuffing in a Rfcomm connection?

Hi everybody,

I'm writing an application that communicates using rfcomm connections.
This application communicates with mobile devices. In order to debug the
application I also wrote a mobile device emulator that runs in a
computer.

Here's the problem:
When the application connects to the mobile device everything works
fine. But when the application connects to the computer emulating a
device, I obtain, mingled with the data the following bytes:
"00 5E 40". Sometimes these bytes are together. Some other times these
bytes are spreaded among the real data bytes. These additional bytes
keeps the application from synchronizing with the emulated device.

My question is: when an rfcomm connection is stablished between two
computers, is there some bit/byte stuffing involved?

Thanks a lot!

Agustin Fusaro - Apexar Technologies



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-22 16:16:58

by Agustin Jose Fusaro

[permalink] [raw]
Subject: Re: [Bluez-users] Connection attempt timeout

I've found the piece of code that does the trick (function _cmd_page_to
in file hciconfig.c). Thanks Marcel!


On Wed, 2006-02-22 at 00:29 +0100, Marcel Holtmann wrote:
> Hi Agustin,
>
> > I'm developing an application using the bluetooth libraries provided by
> > Marcel. I'm working with rfcomm connections. After looking at the
> > function cmd_connect (in the file 'main.c',in the rfcomm directory of
> > the bluez-utils-2.25) I realized that (using this function) there's no
> > way to set the connection attempt timeout (the time the connection
> > attempt will last if the remote device is, for example, turned off).
>
> what do you mean by connection attempt timeout. I think the correct term
> is page timeout and you can of course set it with hciconfig.
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-22 16:17:39

by Agustin Jose Fusaro

[permalink] [raw]
Subject: Re: [Bluez-users] Link quality measurement

I'll take a look at it. Thanks again Marcel!
On Wed, 2006-02-22 at 00:28 +0100, Marcel Holtmann wrote:
> Hi Agustin,
>
> > I'm using 'hcitool lq bdaddr' to obtain the link quality of an rfcomm
> > connection. I wanted to know how this 'quality' is measured, i.e., what
> > does the number (raging from 0 to 255) mean?
> > Does anybody has any idea about this? What would be the typical or
> > optimal link quality measurement?
>
> in case of a CSR chip it is well defined. In case of other chips I have
> no idea, because the link quality is manufacturer specific. Look at my
> CSR page at http://www.holtmann.org/linux/bluetooth/csr.html for more details.
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-21 23:29:18

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Connection attempt timeout

Hi Agustin,

> I'm developing an application using the bluetooth libraries provided by
> Marcel. I'm working with rfcomm connections. After looking at the
> function cmd_connect (in the file 'main.c',in the rfcomm directory of
> the bluez-utils-2.25) I realized that (using this function) there's no
> way to set the connection attempt timeout (the time the connection
> attempt will last if the remote device is, for example, turned off).

what do you mean by connection attempt timeout. I think the correct term
is page timeout and you can of course set it with hciconfig.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-21 23:28:04

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Link quality measurement

Hi Agustin,

> I'm using 'hcitool lq bdaddr' to obtain the link quality of an rfcomm
> connection. I wanted to know how this 'quality' is measured, i.e., what
> does the number (raging from 0 to 255) mean?
> Does anybody has any idea about this? What would be the typical or
> optimal link quality measurement?

in case of a CSR chip it is well defined. In case of other chips I have
no idea, because the link quality is manufacturer specific. Look at my
CSR page at http://www.holtmann.org/linux/bluetooth/csr.html for more details.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-21 23:05:20

by Agustin Jose Fusaro

[permalink] [raw]
Subject: [Bluez-users] Link quality measurement

Hi everybody,

I'm using 'hcitool lq bdaddr' to obtain the link quality of an rfcomm
connection. I wanted to know how this 'quality' is measured, i.e., what
does the number (raging from 0 to 255) mean?
Does anybody has any idea about this? What would be the typical or
optimal link quality measurement?

Thanks a lot,

Agustin Fusaro - Apexar Technologies



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-21 22:00:59

by Agustin Jose Fusaro

[permalink] [raw]
Subject: [Bluez-users] Connection attempt timeout

Hi everybody,

I'm developing an application using the bluetooth libraries provided by
Marcel. I'm working with rfcomm connections. After looking at the
function cmd_connect (in the file 'main.c',in the rfcomm directory of
the bluez-utils-2.25) I realized that (using this function) there's no
way to set the connection attempt timeout (the time the connection
attempt will last if the remote device is, for example, turned off).

My question is, Is there a way to set this time? (maybe using the
properties of the sockets involved in this connection)

If anyone knows this answer, it'd be great!

Thanks very much!

Agustin Fusaro - Apexar Technologies



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-17 13:43:15

by Agustin Jose Fusaro

[permalink] [raw]
Subject: Re: [Bluez-users] Cannot compile bluez-utils-2.25

Claudio, thx very much for your response. I've changed the name to=20
dbus_connection_disconnect, and now compiles perfectly
Thx again
Agustin Fusaro

Claudio Takahasi escribi=F3:

>Hi Augustin,
>
>On 2/15/06, Agustin Jose Fusaro <[email protected]> wrote:
> =20
>
>>Hi everybody,
>>
>>I'm having trouble installing the bluez-utils-2.25 package. I've alread=
y
>>installed the bluez-libs-2.25 package without any problem, but now, whe=
n
>>I try to ' make ' the new utils I get an undefined reference to
>>`dbus_connection_close' error in file dbus.c. It seems not to be define=
d
>>in this file.
>>
>>Has anybody had this problem?
>> =20
>>
>[Claudio Takahasi]
>The function dbus_connection_disconnect was deprecated. It was renamed
>to dbus_connection_close. Try update your D-Bus or rename the
>function.
>
>--
>---------------------------------------------------------
>Claudio Takahasi
>Instituto Nokia de Tecnologia - INdT
>
> =20
>
>>By the way, I've been working with the bluez library and utils (2.22)
>>for a while and had some strange problems (rfcomm mostly)... so I just
>>wanted to make sure that I have the latest version before making furthe=
r
>>questions.
>>
>>Thanks a lot!
>>
>>Agustin Fusaro
>>
>>
>>
>>-------------------------------------------------------
>>This SF.net email is sponsored by: Splunk Inc. Do you grep through log =
files
>>for problems? Stop! Download the new AJAX search engine that makes
>>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>>http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=
=3D121642
>>_______________________________________________
>>Bluez-users mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/bluez-users
>>
>> =20
>>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log f=
iles
>for problems? Stop! Download the new AJAX search engine that makes
>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>http://sel.as-us.falkag.net/sel?cmd_____________________________________=
__________
>Bluez-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/bluez-users
>
> =20
>



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-17 11:32:42

by Claudio Takahasi

[permalink] [raw]
Subject: Re: [Bluez-users] Cannot compile bluez-utils-2.25

Hi Augustin,

On 2/15/06, Agustin Jose Fusaro <[email protected]> wrote:
> Hi everybody,
>
> I'm having trouble installing the bluez-utils-2.25 package. I've already
> installed the bluez-libs-2.25 package without any problem, but now, when
> I try to ' make ' the new utils I get an undefined reference to
> `dbus_connection_close' error in file dbus.c. It seems not to be defined
> in this file.
>
> Has anybody had this problem?
[Claudio Takahasi]
The function dbus_connection_disconnect was deprecated. It was renamed
to dbus_connection_close. Try update your D-Bus or rename the
function.

--
---------------------------------------------------------
Claudio Takahasi
Instituto Nokia de Tecnologia - INdT

>
> By the way, I've been working with the bluez library and utils (2.22)
> for a while and had some strange problems (rfcomm mostly)... so I just
> wanted to make sure that I have the latest version before making further
> questions.
>
> Thanks a lot!
>
> Agustin Fusaro
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=
=3D121642
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-02-15 21:04:31

by Agustin Jose Fusaro

[permalink] [raw]
Subject: [Bluez-users] Cannot compile bluez-utils-2.25

Hi everybody,

I'm having trouble installing the bluez-utils-2.25 package. I've already
installed the bluez-libs-2.25 package without any problem, but now, when
I try to ' make ' the new utils I get an undefined reference to
`dbus_connection_close' error in file dbus.c. It seems not to be defined
in this file.

Has anybody had this problem?

By the way, I've been working with the bluez library and utils (2.22)
for a while and had some strange problems (rfcomm mostly)... so I just
wanted to make sure that I have the latest version before making further
questions.

Thanks a lot!

Agustin Fusaro



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users