Return-Path: Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <47F269F7.3000105@infitsrl.com> References: <47F269F7.3000105@infitsrl.com> Message-Id: From: Fabrizio Guglielmino Date: Thu, 3 Apr 2008 22:41:48 +0200 To: BlueZ development Subject: Re: [Bluez-devel] DBUS StartPeriodicDiscovery Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1388304506==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============1388304506== Content-Type: multipart/alternative; boundary=Apple-Mail-1--832642206 --Apple-Mail-1--832642206 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed I try to give more info about the problem hoping someone can give me a little help. I compiled the example from : http://wiki.bluez.org/wiki/HOWTO/ DiscoveringDevices (the "glib with C" one), used on laptop with ubuntu :all ok, on a pc with debian :all ok, on ebox 2300sx with debian 4.0 NOTHING (no errors no responses). - dbus is running - hcid is running - if I make "hcitool scan" I can see the nearest bluetooth devices - In syslog the only messages are "hcid[1794]: name_listener_add(: 1.1)" and "hcid[1794]: DiscoverDevices requestor at :1.1 exited before the operation finished" (I've stopped the program after about 6/7 minutes of no-output) I think problem is dbus related but I don't know where to look, I also tried "dbus-send --system --type=method_call --print-reply -- dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.GetMode" to interact with dbus and all works fine so the problem may be in Discovery related methods. Suggestion? Many thanks Il giorno 01/apr/08, alle ore 18:59, Fabrizio Guglielmino ha scritto: > Hi all, > I've made a software using DBUS StartPeriodicDiscovery monitoring in > (almost) realtime bluetooth devices in range. > I've already used this software with many computer and bluetooth > dongles > without any problem (I've user it on a Asus eee with ubuntu and kernel > 2.6.22, in a debian with kernel 2.6.23 and so on). > > Now I've installed it on a ebox 2300SX > (http://www.compactpc.com.tw/ebox-2300SX.htm) using a customized > debian > 4.0 to run on compact flash with kernel 2.6.22. > I have two different problem : > - When I made a proxy call to StartPeriodicDiscovery sometime i > receive > the response "Invalid argument", but if I made hciconfig hci0 reset > before running the problem doesn't appear > - Events generated by StartPeriodicDiscovery (eg. > RemoteDeviceFound) are > never called > > I can see the led of the bluetooth dongle blinking whene proxy call to > StartPeriodicDiscovery doesn't give error so I think periodic inquiry > is running (I have not verified with hcidump because at the moment > isnt' > installed on the device and I can't install it ) > > The big difference from the 2300sx and the other installation is it > doesn't have math coporcessor so I have compiled the kernel to support > math emulation but I can't think this is the cause of my problems (why > bluez should use math coprocessor?). Also in the dmesg of the device I > found some error about ACPI ("ACPI: Unable to load the System > Description Tables" and "pnp: PnP ACPI: disabled"), I'm not expert of > ACPI but I think may cause some problems to usb devices... > > Can someone give me a starting point to found the problem? > > Many thanks > Fabrizio > > ---------------------------------------------------------------------- > --- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/ > marketplace > _______________________________________________ > Bluez-devel mailing list > Bluez-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-devel --Apple-Mail-1--832642206 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 I try to give more info about the problem hoping = someone can give me a little help.

I compiled the example from = :=A0http://wiki.b= luez.org/wiki/HOWTO/DiscoveringDevices (the "glib with C" one), used = on laptop with ubuntu :all ok, on a pc with debian :all ok, on ebox = 2300sx with debian 4.0 NOTHING (no errors no = responses).

- dbus is running
- hcid is = running
- if I make "hcitool scan" I can see the nearest = bluetooth devices
- In syslog the only messages are "hcid[1794]: = name_listener_add(:1.1)" and "hcid[1794]: DiscoverDevices requestor at = :1.1 exited before the operation finished" (I've stopped the program = after about 6/7 minutes of no-output)

I think problem is dbus = related but I don't know where to look, I also tried "dbus-send --system = --type=3Dmethod_call --print-reply --dest=3Dorg.bluez /org/bluez/hci0 = org.bluez.Adapter.GetMode" to interact with dbus and all works fine so = the problem may be in Discovery related = methods.


Suggestion?
Many = thanks


Il giorno = 01/apr/08, alle ore 18:59, Fabrizio Guglielmino ha scritto:
Hi all,
I've made a = software using=A0 DBUS = StartPeriodicDiscovery monitoring in=A0
(almost) = realtime bluetooth devices in range.
I've already = used this software with many computer and bluetooth dongles=A0
without = any problem (I've user it on a Asus eee with ubuntu and kernel=A0
2.6.22, = in a debian with kernel 2.6.23 and so on).

Now I've = installed it on a ebox 2300SX=A0
(http://www.compactpc.= com.tw/ebox-2300SX.htm) using a customized debian=A0
4.0 to = run on compact flash with kernel 2.6.22.
I have = two different problem :
- When I made = a proxy call to StartPeriodicDiscovery sometime i receive=A0
the = response "Invalid argument", but if I made hciconfig hci0 reset=A0
before = running the problem doesn't appear
- Events = generated by StartPeriodicDiscovery (eg. RemoteDeviceFound) are=A0
never = called

I can see the led of the bluetooth dongle blinking = whene proxy call to=A0
=A0 = doesn't give error so I think periodic inquiry=A0
is = running (I have not verified with hcidump because at the moment = isnt'=A0
installed on the device and I can't install it = )

The big difference from the 2300sx and the other = installation is it=A0
doesn't have math coporcessor so I have compiled the = kernel to support=A0
math emulation but I can't think this is the cause = of my problems (why=A0
bluez = should use math coprocessor?). Also in the dmesg of the device I=A0
found = some error about ACPI ("ACPI: Unable to load the System=A0
=A0
ACPI but I think may cause some problems to usb = devices...

Can someone give me a starting point to found the = problem?

Many thanks

Check out the new SourceForge.net = Marketplace.
It's the best place to buy or = sell services for
just about anything Open = Source.
Bluez-devel mailing list
=

= --Apple-Mail-1--832642206-- --===============1388304506== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace --===============1388304506== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============1388304506==--