Return-Path: MIME-Version: 1.0 Date: Mon, 12 Feb 2007 11:09:18 -0500 Message-ID: <2EB6297382462046A9427D7324788A4801A3898D@MCLNEXVS06.resource.ds.bah.com> From: "Williams, Richard" To: Subject: [Bluez-devel] Oops with multiple hcitool commands Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1665855069==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net This is a multi-part message in MIME format. --===============1665855069== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C74EC0.26CD43CC" This is a multi-part message in MIME format. ------_=_NextPart_001_01C74EC0.26CD43CC Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello All, =20 I am building a project that will use multiple HCI devices on a single Linux PC. I have a USB hub, and several Linksys Bluetooth dongles. On my PC I open two terminal windows and then run the following commands: =20 window 1# hcitool -i hci0 info 00:18:C5:2C:5E:C2 window 2# hcitool -i hci1 info 00:18:C5:2C:5E:C2 =20 The two commands must run simultaneously. Just these two commands run quickly one after the other will almost always cause the oops. The problem does not occur if the two hcitool info commands are examining different remote devices. You must go after the same remote device. =20 Its very easy to demonstrate the problem with two simple scripts: =20 window 1 # while true > do > hcitool -i hci0 info 00:18:C5:2C:5E:C2 > sleep 1 > done =20 and the same script in window 2 using hci1. Within a few seconds, you will get a collision and then oops! =20 =20 I am running Fedora Core 2.6.19-1.2895.fc6 Bluez-libs-3.9 Bluez-utils-3.9 =20 I realize that two hcitool info commands toward the same remote device is probably not a good thing to do, but it should not cause an oops! =20 Thanks very much. =20 Rich Williams New Jersey, USA =20 =20 =20 =20 =20 ------_=_NextPart_001_01C74EC0.26CD43CC Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hello=20 All,
 
I am = building a=20 project that will use multiple HCI devices on a single Linux PC. I have = a USB=20 hub, and several Linksys Bluetooth dongles. On my PC I open two terminal = windows=20 and then run the following commands:
 
window = 1# =20 hcitool -i hci0 info 00:18:C5:2C:5E:C2
window = 2# =20 hcitool -i hci1 info 00:18:C5:2C:5E:C2
 
The = two commands=20 must run simultaneously. Just these two commands run quickly one after = the other=20 will almost always cause the oops. The problem does not occur if the two = hcitool info commands are examining different remote = devices.=20 You must go after the same remote device.
 
Its = very easy to=20 demonstrate the problem with two simple scripts:
 
window = 1 # while=20 true
>=20 do
> = hcitool -i hci0=20 info 00:18:C5:2C:5E:C2
> = sleep=20 1
>=20 done
 
and = the same script=20 in window 2 using hci1. Within a few seconds, you will get a collision = and then=20 oops!
 
 
I am = running Fedora=20 Core 2.6.19-1.2895.fc6
Bluez-libs-3.9
Bluez-utils-3.9
 
I = realize that two=20 hcitool info commands toward the same remote device is probably not a = good thing=20 to do, but it should not cause an oops!
 
Thanks = very=20 much.
 
Rich=20 Williams
New = Jersey,=20 USA
 
 
 
 
 
------_=_NextPart_001_01C74EC0.26CD43CC-- --===============1665855069== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============1665855069== 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 --===============1665855069==--