Linux bluetooth development
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@nokia.com>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] DiscoverDevices with apitest?
Date: Thu, 19 Oct 2006 15:31:33 +0300	[thread overview]
Message-ID: <20061019123133.GA18838@localhost.localdomain> (raw)
In-Reply-To: <1161259469.27710.40.camel@localhost>

[-- Attachment #1: Type: text/plain, Size: 389 bytes --]

On Thu, Oct 19, 2006, Marcel Holtmann wrote:
> You need to keep the calling application running, because otherwise hcid
> will stop the discovery. That is actually what you see in syslog.

You could also try the attached patch. After that the following command 
should do the trick:
./apitest -l DiscoverDevices

I think we may want to apply this to CVS. Marcel, what do you think?

Johan

[-- Attachment #2: apitest.patch --]
[-- Type: text/plain, Size: 878 bytes --]

Index: apitest
===================================================================
RCS file: /cvsroot/bluez/utils/test/apitest,v
retrieving revision 1.1
diff -u -r1.1 apitest
--- apitest	28 Sep 2006 15:23:24 -0000	1.1
+++ apitest	19 Oct 2006 12:30:33 -0000
@@ -399,7 +399,8 @@
             self.dbus_mgr_sig_setup()
             self.dbus_dev_sig_setup()
             print 'Listening for events...'
-        elif self.cmd in mgr_cmds:
+
+        if self.cmd in mgr_cmds:
             try:
                 self.dbus_mgr_setup()
             except dbus.DBusException, e:
@@ -413,7 +414,7 @@
                 print 'Failed to setup device interface: %s' % e
                 sys.exit(1)
             self.call_dev_dbus_func()
-        else:
+        else if not self.listen:
             print 'Unknown command: %s' % self.cmd
             self.usage()
             sys.exit(1)

[-- Attachment #3: Type: text/plain, Size: 373 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2006-10-19 12:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-19 11:56 [Bluez-users] DiscoverDevices with apitest? Stefan Seyfried
2006-10-19 12:04 ` Marcel Holtmann
2006-10-19 12:31   ` Johan Hedberg [this message]
2006-10-19 12:35     ` Johan Hedberg
2006-10-19 12:42       ` Marcel Holtmann
2006-10-19 12:49         ` Johan Hedberg
2006-10-19 12:41     ` Stefan Seyfried

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061019123133.GA18838@localhost.localdomain \
    --to=johan.hedberg@nokia.com \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox