From: Johan Hedberg <johan.hedberg@gmail.com>
To: Barry Byford <31baz66@gmail.com>
Cc: Bluez mailing list <linux-bluetooth@vger.kernel.org>
Subject: Re: Serial Port connection with DBus API
Date: Wed, 26 Apr 2017 22:07:28 +0300 [thread overview]
Message-ID: <20170426190728.GA14369@x1c> (raw)
In-Reply-To: <CAAu3APYz+fP-f2S3XqV1EJLs4d=4-URTMG-bffNZmZNFQE+ROQ@mail.gmail.com>
Hi Barry,
On Tue, Apr 25, 2017, Barry Byford wrote:
> I don't feel I'm making progress on this so I've attached the output
> from btmon in the hope that someone has the time to cast an eye over
> it.
>
> The values that are received into NewConnection are:
> object device = /org/bluez/hci0/dev_64_BC_0C_F6_22_F8
> fd = 0
> dict fd_properties = {}
>
> if I do a os.isatty(fd) then I get returned True
> if I do a os.ttyname(fd) then I get returned /dev/pts/0
Our test/test-profile script does the following:
def NewConnection(self, path, fd, properties):
self.fd = fd.take()
Are you doing something similar? Otherwise it looks like file descriptor
passing is somehow broken in your system.
Johan
next prev parent reply other threads:[~2017-04-26 19:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-07 13:47 Serial Port connection with DBus API Barry Byford
2017-04-07 21:56 ` Barry Byford
2017-04-08 7:18 ` Johan Hedberg
2017-04-08 7:57 ` Barry Byford
2017-04-21 20:54 ` Barry Byford
2017-04-22 5:26 ` Johan Hedberg
2017-04-22 20:46 ` Barry Byford
2017-04-25 21:48 ` Barry Byford
2017-04-26 19:07 ` Johan Hedberg [this message]
2017-04-26 22:47 ` Barry Byford
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=20170426190728.GA14369@x1c \
--to=johan.hedberg@gmail.com \
--cc=31baz66@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.