Return-Path: Message-ID: Date: Wed, 13 Sep 2006 09:23:34 -0300 From: "Claudio Takahasi" To: "BlueZ users" In-Reply-To: MIME-Version: 1.0 References: Subject: Re: [Bluez-users] restricting inquiry responses Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net On 9/12/06, Loreno Oliveira wrote: > Hi there, > > I have different base stations that permanently try to find out new mobile > devices on their coverage areas. Once discovered and paired with some BS, I > need this device to be able to not answer to that BS inquiries. > > Is there a solution for this?? > > Regards, > > Loreno _______________________________________________ > Bluez-users mailing list > Bluez-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-users Hi Loreno, You can use the a D-Bus method to switch the device to "Connectable" mode. The adapter interface supports the following discoverable modes: discoverable: PSCAN ISCAN connectable: PSCAN off: NOSCAN Use the gbluezconf(test app) to setup this mode: http://www.maemo.org.br/cktakahasi/gbluezconf/gbluezconf-00.32.tar.gz Or dbus-send: $dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetDiscoverableTimeout uint32:0 $dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable The default discoverable timeout is 180sec. Setting it to 0 + discoverable mode to "discoverable" the device will be always visible. Setting the discoverable timeout to X + mode to discoverable, the mode will be changed automatically to connectable mode after X seconds. BR, Claudio. -- --------------------------------------------------------- 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-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users