Skip to contentSkip to conversation

D-Bus and two inquiries

Bluez-devel Herman Meerlo 2 participants 3 messages Apr 27, 2006 – May 5, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi all,

I noticed that when I try to perform two inquiries on two different devices simultaneously (using DBus), that one of the two will report 'Discover already in progress'. Is this by design and if so why?

Regards,
Herman Meerlo

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw

Hi Herman,

If you have two local Bluetooth adapter, it's possible run two inquiries simultaneously.
You can reproduce sending the inquiry command using dbus-send:
$dbus-send --system --type=3Dmethod_call --print-reply --dest=3Dorg.bluez /org/bluez/hci0 org.bluez.Adapter.DiscoverDevices
$dbus-send --system --type=3Dmethod_call --print-reply --dest=3Dorg.bluez /org/bluez/hci1 org.bluez.Adapter.DiscoverDevices

If you have just one local adapter, the second inquiry request can be processed after the DiscoveryCompleted signal only.

Regards,
Claudio.

Quoted 6 lines · Herman Meerlo

Hi all,

I noticed that when I try to perform two inquiries on two different devices simultaneously (using DBus), that one of the two will report 'Discover already in progress'. Is this by design and if so why?

Quoted 8 lines

Regards,
Herman Meerlo

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job ea=

sier

Quoted 1 line

Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim=

o

Quoted 1 line

http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=

=3D121642

Quoted 5 lines

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw

Hi Claudio,

thanks for your reply. It does indeed work as expected, the error was in some library at my side which caused the DiscoveryCompleted signal to be routed to the wrong application.

Regards,
Herman

Quoted 55 lines · Claudio Takahasi

Hi Herman,

If you have two local Bluetooth adapter, it's possible run two inquiries simultaneously.
You can reproduce sending the inquiry command using dbus-send:
$dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.DiscoverDevices $dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci1 org.bluez.Adapter.DiscoverDevices

If you have just one local adapter, the second inquiry request can be processed after the DiscoveryCompleted signal only.

Regards,
Claudio.

Quoted 21 lines · Herman Meerlo

Hi all,

I noticed that when I try to perform two inquiries on two different devices simultaneously (using DBus), that one of the two will report 'Discover already in progress'. Is this by design and if so why?

Regards,
Herman Meerlo

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

Signature · 14 lines
---------------------------------------------------------
Claudio Takahasi
Instituto Nokia de Tecnologia - INdT


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Signature · 12 lines
service2media

**Herman Meerlo**
Software Engineer

Service2Media B.V.
Capitool 41 7521 PL Enschede
Postbus 75040 1070 AA Amsterdam
Mob +31 (0) 622 999 457
Tel +31 (0) 534 500 612
Fax +31 (0) 534 500 613
http://www.service2media.com

begin:vcard
fn:'t Haofke
n:'t Haofke
adr;dom:;;Veldstraat 20;Roermond;;6041GS tel;work:0475317535 x-mozilla-html:FALSE
version:2.1
end:vcard