From owner-freebsd-bluetooth@FreeBSD.ORG Sun Apr 15 18:35:22 2012 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1BA5F1065670 for ; Sun, 15 Apr 2012 18:35:22 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id E3B1F8FC12 for ; Sun, 15 Apr 2012 18:35:21 +0000 (UTC) Received: by dadz14 with SMTP id z14so20753742dad.17 for ; Sun, 15 Apr 2012 11:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=V7sgT1zEjJFQM1N6NICgDhIx3qR2uaUJ5QBQgNNcDOA=; b=gW8fPvr80uxLJ6pmfjLMYVoWPwV0ycsgIn+1SMmjrgMxZm1Qg4ylL7Kw4YOOP4m8Z3 paiYgt4ycWZeBPRMmjZs13/u24pGaYhgMQce+UQXSELvsg+WiHc0Gdo26FtJZEPqkliO InxqpihEZXLXSbPQBL23ff+iiNnHl4xZo9wQmPENLtqEEcAUSFp9RUHL05HU5qz63iA1 sg0jXg33nRzEYQDckdt7JRYBATlvXn8t4RcaEoqYVlr3uZwFxmVTFUV8YTafIvNmnwIp XFQGiUXA2P8j/s+8L141I0NG+Z2j2qwwk7IW+O+1Loo/8p5hpV/SuLpXXDdgvbkWnfbu eQFg== MIME-Version: 1.0 Received: by 10.68.221.102 with SMTP id qd6mr21936430pbc.36.1334514921373; Sun, 15 Apr 2012 11:35:21 -0700 (PDT) Received: by 10.68.232.194 with HTTP; Sun, 15 Apr 2012 11:35:21 -0700 (PDT) In-Reply-To: References: Date: Sun, 15 Apr 2012 11:35:21 -0700 Message-ID: From: Maksim Yevmenkin To: Barnaba Turek Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-bluetooth@freebsd.org Subject: Re: rfcomm_sppd won't allocate tty. X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Apr 2012 18:35:22 -0000 rfcomm_sppd needs to be fixed to use openpty(3). patches are welcome. max On Thu, Apr 12, 2012 at 7:42 PM, Barnaba Turek wro= te: > Hello, > > I'm trying to use rfcomm_sppd to connect to serial console over > bluetooth, and I'm facing strange issue. > I think the problem is related to creation of new terminal device in my s= ystem. > > When I run rfcomm_sppd in the foreground, everything works fine: > > =A0$ rfcomm_sppd -a F11 > rfcomm_sppd[1488]: Starting on stdin/stdout... > ^Crfcomm_sppd[1488]: Signal 2 received. Total 1 signals received > rfcomm_sppd[1488]: Completed on stdin/stdout > > $echo $? > 0 > > But when I try to use pty/tty instead of the device, rfcomm_sppd fails > silently with error code 1 and no device is created: > > =A0$ sudo rfcomm_sppd -a F11 =A0-t /dev/ptyp2 > =A0$ echo $? > 1 > =A0$ sudo rfcomm_sppd -a F11 =A0-t /dev/ttyp2 > =A0$ echo $? > 1 > =A0$ ls /dev/*yp2 > zsh: no matches found: /dev/*yp2 > > Am I missing something? > > regards, > Barnaba Turek > _______________________________________________ > freebsd-bluetooth@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth > To unsubscribe, send any mail to "freebsd-bluetooth-unsubscribe@freebsd.o= rg"