Welcome to WiFi-Forum

Go Back   WiFi-Forum - Wi-Fi Discussion Forum > Bluetooth Discussion Forums > BlueTooth Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2007, 03:02 AM
prc prc is offline
Junior Member
 
Join Date: Jul 2007
Location: Finland
Posts: 1
Unhappy HCI_INQUIRY fails if device is pinging others

Hello.

I found out a little problem with bluetooth devices when working on my bachelor's thesis project.

We have a kind of middleware software under development for mobile devices.

To find devices (on bt connection) we use hci_inquiry function in linux (c/c++) which works quite well. Our inquiry interval at the moment is approx 30 seconds, if we try to inquiry too fast, we don't find any devices.

Now.. our middleware has an option to monitor a specific device (based on device mac addr). This monitoring is basically a PING sent to the other device, which should respond to it. And they do respond.

Problem is that when device A is pinging device X, the device A's inquiry fails totally, it will not find any devices at all. Our ping interval is 1 second, which I think is too short and interferes with the inquiry method of bt protocol.

I am going to try to set much much longer ping interval, but I had a thought that this could be used as kind of DoS attack against other BT devices. (Dunno if I have time to test this).

But the attack might be doable like this.

1) HCI_INQUIRY (store devices to some where)

2) START N pinger threads (1 for each device)

3) PING all devices really fast.

I am not sure, if this will cripple the target device's inquiry, but at least at this point it seems the source cant get any responses to it, so it might be possible that the target device wont either. I think this should not affect target device, if it just drops the PING packets, but dunno about it either.

Imagine someone running such program for example on mobile phone while moving in public places

-- Update --

Apparently we had a small testing application that I could modify in a few minutes to do some ping testing on devices.

Not all bt-devices which are pinging others lose their inquiry functionality, seems that most badly affected one here is 3COM (3creb96) usb-bluetooth dongle. Tho others lose some of the inquiry tries.

3COM also seems to get some inquiries trough, when there is only inquiry running while its pinging. When I run my own service which polls several connections with select, inquiries other devices via Daemon, and pings device being monitored it will lose them all. So it is related to load on the connection / protocol stack.

The device being pinged is hardly affected. Only 2 failed inquiries (empty inquiries) out of approx 30-40 tries.

Last edited by prc : 07-11-2007 at 03:55 AM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
device not detected continiously arungda BlueTooth Forum 0 05-09-2007 01:55 AM
A GbE device not able to forward full-rate odd-byte frames jaymkim@gmail.com comp.dcom.lans.ethernet 4 11-04-2005 05:43 AM
Re: Device That Interfaces Between Phone/CallerID and Serial Port? Gordon Burditt comp.dcom.telecom 0 10-12-2005 12:36 PM
Re: Device That Interfaces Between Phone/CallerID and Serial Port? anon1@sci.sci comp.dcom.telecom 0 10-10-2005 01:53 PM
Re: Cell Phone For VOIP - Home Device Imitates Provider Signal Robert Bonomi comp.dcom.telecom 0 07-31-2005 05:46 PM




All times are GMT -7. The time now is 02:29 AM.

vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. All Contents Copyright © Wifi-Forum.com