Date: Sun, 15 Apr 2012 11:35:21 -0700 From: Maksim Yevmenkin <maksim.yevmenkin@gmail.com> To: Barnaba Turek <barnabaturek@gmail.com> Cc: freebsd-bluetooth@freebsd.org Subject: Re: rfcomm_sppd won't allocate tty. Message-ID: <CAFPOs6pF=q024bb4wT0Gg3vcOJqo6y2jsq=tNfb_oirTtGeZJg@mail.gmail.com> In-Reply-To: <CACiz7a8=dEoYEV_oc3H1vnad7%2BRvj8XpUb32ALf7zTULR%2BmEDg@mail.gmail.com> References: <CACiz7a8=dEoYEV_oc3H1vnad7%2BRvj8XpUb32ALf7zTULR%2BmEDg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <barnabaturek@gmail.com> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFPOs6pF=q024bb4wT0Gg3vcOJqo6y2jsq=tNfb_oirTtGeZJg>