linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] DBUS StartPeriodicDiscovery
@ 2008-04-01 16:59 Fabrizio Guglielmino
  2008-04-03 20:41 ` Fabrizio Guglielmino
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrizio Guglielmino @ 2008-04-01 16:59 UTC (permalink / raw)
  To: BlueZ development

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

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

* Re: [Bluez-devel] DBUS StartPeriodicDiscovery
  2008-04-01 16:59 [Bluez-devel] DBUS StartPeriodicDiscovery Fabrizio Guglielmino
@ 2008-04-03 20:41 ` Fabrizio Guglielmino
  2008-04-03 22:14   ` Claudio Takahasi
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrizio Guglielmino @ 2008-04-03 20:41 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 3209 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 9766 bytes --]

[-- Attachment #2: Type: text/plain, Size: 278 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] DBUS StartPeriodicDiscovery
  2008-04-03 20:41 ` Fabrizio Guglielmino
@ 2008-04-03 22:14   ` Claudio Takahasi
  2008-04-04  9:46     ` Fabrizio Guglielmino
  0 siblings, 1 reply; 4+ messages in thread
From: Claudio Takahasi @ 2008-04-03 22:14 UTC (permalink / raw)
  To: BlueZ development

On Thu, Apr 3, 2008 at 5:41 PM, Fabrizio Guglielmino
<guglielmino@infitsrl.com> wrote:
> 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
>
> -------------------------------------------------------------------------
>  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
>
>


Hi Fabrizio,

Discover process is automatically canceled when the client exits.
dbus-send will not work, try d-feet or other client that keeps the
D-Bus connection opened.

Regards,
Claudio.

-- 
---------------------------------------------------------
Claudio Takahasi (krau)
Instituto Nokia de Tecnologia - INdT
jabber: claudio.takahasi@gmail.com
Mobile: +55 81 88864779

-------------------------------------------------------------------------
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

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

* Re: [Bluez-devel] DBUS StartPeriodicDiscovery
  2008-04-03 22:14   ` Claudio Takahasi
@ 2008-04-04  9:46     ` Fabrizio Guglielmino
  0 siblings, 0 replies; 4+ messages in thread
From: Fabrizio Guglielmino @ 2008-04-04  9:46 UTC (permalink / raw)
  To: BlueZ development

[...]
>
> Hi Fabrizio,
>
> Discover process is automatically canceled when the client exits.
> dbus-send will not work, try d-feet or other client that keeps the
> D-Bus connection opened.
>
> Regards,
> Claudio.
>
>   

I can't use it because debian on this device is customized to fit in a 
512Mb compact flash and I don't have all X11 Gnome etc.. stuff...
I'm trying to make a new kernel supposing the problem may be in it.

thanks


-------------------------------------------------------------------------
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

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

end of thread, other threads:[~2008-04-04  9:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-01 16:59 [Bluez-devel] DBUS StartPeriodicDiscovery Fabrizio Guglielmino
2008-04-03 20:41 ` Fabrizio Guglielmino
2008-04-03 22:14   ` Claudio Takahasi
2008-04-04  9:46     ` Fabrizio Guglielmino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).