Return-Path: Date: Wed, 26 Apr 2017 22:07:28 +0300 From: Johan Hedberg To: Barry Byford <31baz66@gmail.com> Cc: Bluez mailing list Subject: Re: Serial Port connection with DBus API Message-ID: <20170426190728.GA14369@x1c> References: <20170408071834.GA12144@x1c> <20170422052644.GA31652@x1c> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-bluetooth-owner@vger.kernel.org List-ID: 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