As you recommended, hcitools may fit more to my needs, however, neither "l2ping" and "hcitools" nor "grep" functionalities are available on my device (HTC Desire). I found hcitools from web. Since I dont have write access, I cannot "push" hcitools to the device.
On 8 Mrz., 18:41, "Arun K. Singh" <[email protected]> wrote: > On Tue, Mar 8, 2011 at 10:21 PM, Mehmet Yildirim > > <[email protected]> wrote: > > Hi, > > > I am trying to ping from my android phone to another bt device, which > > is a bt headset. I want to ping continuosly the known mac addresses of > > several headsets, after that I want to create events within my > > application, when some of the headsets are in range. > > why not try measure rssi strength of these bd addresses via hcitool? > That way you would be able to define your threshold rssi for what you > feel is "in range" condition ...l2ping would never let you have such > control.... > > > > > Under system/bin I cannot find any l2ping executable. The file is not > > existing. My android version is 2.2 and I dont have a root access. Do > > I need root access to just execute l2ping? > > I think l2ping should be under usr/sbin/ but you should rely on a > grep in your root fs on phone. You don't need to be root to run l2ping > or similar bluez tools ...HTH ... > > Thanks, > Arunwww.crazydaks.com -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel
