ttys file question

2013-09-11 Thread Jack Mc Lauren
I have added the following entry to /etc/gettytab file

test.std.115200:\
:ep:sp#4800:tc:Pc

And also I have changed /etc/ttys file

cuau3   /usr/libexec/getty test.std.115200cons25  on secure

I expect /dev/cuau3 device to use even parity and 4800 as speed, but when I 
check the device properties using stty -f /dev/cuau3, only speed changes to 
4800 and parity value does not change.

Here's the output of stty -f /dev/cuau3 after applying the changes using kill 
-HUP 1 command.


speed 4800 baud;
lflags: -icanon -isig -iexten -echo
iflags: -icrnl -ixon -ixany -imaxbel -brkint
oflags: -opost tab3
cflags: cs8 -parenb
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Fw: ttys file question

2013-09-11 Thread Jack Mc Lauren
I have added the following entry to /etc/gettytab file


test.std.115200:\
:ep:sp#4800:tc:Pc

And also I have changed /etc/ttys file

cuau3   /usr/libexec/getty test.std.115200    cons25  on secure

I expect /dev/cuau3 device to use even parity and 4800 as speed, but when I 
check the device properties using stty -f /dev/cuau3, only speed changes to 
4800 and parity value does not change.

Here's the output of stty -f /dev/cuau3 after applying the changes using kill 
-HUP 1 command.


speed 4800 baud;
lflags: -icanon -isig -iexten -echo
iflags: -icrnl -ixon -ixany -imaxbel -brkint
oflags: -opost tab3
cflags: cs8 -parenb
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ttys file question

2013-09-09 Thread Jack Mc Lauren
 But I can not connect to my server with this configuration. But if I
 change ttyu6 to cuau6, everything works fine! I don't understand the
 difference, would you please explain the reason for me?

In short the tty devices are for outgoing connections, the cua
devices are for incoming connections.

For more detail see sio(4), after all the detail about multi-port
serial cards and their master ports comes a couple of paragraphs describing
the devices associated with each serial port in detail.

-- 
Steve O'Hara-Smith st...@sohara.org



Thanks. Another question is how can I change the default values of e.g. 
databits, stopbits and ... for the device?
I can set the speed in /etc/ttys.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ttys file question

2013-09-09 Thread Steve O'Hara-Smith
On Sun, 8 Sep 2013 23:13:37 -0700 (PDT)
Jack Mc Lauren jack.mclau...@yahoo.com wrote:

 Thanks. Another question is how can I change the default values of e.g.
 databits, stopbits and ... for the device? I can set the speed
 in /etc/ttys.

Look at the man pages for sio and stty - all the details are there.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ttys file question

2013-09-08 Thread Jack Mc Lauren
Hi list

I'm trying to connect to my server via a serial port which is named ttyu6 under 
FreeBSD. In order to do that, I've decided to change /etc/ttys file like this:

# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
ttyu6   /usr/libexec/getty std.115200 cons25  on secure


But I can not connect to my server with this configuration. But if I change 
ttyu6 to cuau6, everything works fine! I don't understand the difference, would 
you please explain the reason for me?

Thanks in advance 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ttys file question

2013-09-08 Thread Jack Mc Lauren
Hi list


I'm trying to connect to my server via a serial port which is named ttyu6 under 
FreeBSD. In order to do that, I've decided to change /etc/ttys file like this:

# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
ttyu6   /usr/libexec/getty std.115200 cons25  on secure


But I can not connect to my server with this configuration. But if I change 
ttyu6 to cuau6, everything works fine! I don't understand the difference, would 
you please explain the reason for me?

Thanks in advance 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Fw: ttys file question

2013-09-08 Thread Jack Mc Lauren
Hi list

I'm trying to connect to my server via a serial port which is named ttyu6 under 
FreeBSD. In order to do that, I've decided to change /etc/ttys file like this:

#Serial terminlas
#The 'dialup' keyword identifies dialin lines to login, fingerd etc.
ttyu6  /usr/libexec/getty  std.115200 cons25 on secure


But I can not connect to my server with this configuration. But if I change 
ttyu6 to cuau6, everything works fine! I don't understand the difference, would 
you please explain the reason for me?

Thanks in advance 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ttys file question

2013-09-08 Thread Jack Mc Lauren
Hi list

I'm trying to connect to my server via a serial port which is named ttyu6 under 
FreeBSD. In order to do that, I've decided to change /etc/ttys file like this:

ttyu6    std.115200 cons25  on secure

But I can not connect to my server with this configuration. But if I change 
ttyu6 to cuau6, everything works fine! I don't understand the difference, would 
you please explain the reason for me?

Thanks in advance 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ttys file question

2013-09-08 Thread Steve O'Hara-Smith
On Sun, 8 Sep 2013 09:40:44 -0700 (PDT)
Jack Mc Lauren jack.mclau...@yahoo.com wrote:

 But I can not connect to my server with this configuration. But if I
 change ttyu6 to cuau6, everything works fine! I don't understand the
 difference, would you please explain the reason for me?

In short the tty devices are for outgoing connections, the cua
devices are for incoming connections.

For more detail see sio(4), after all the detail about multi-port
serial cards and their master ports comes a couple of paragraphs describing
the devices associated with each serial port in detail.

-- 
Steve O'Hara-Smith st...@sohara.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ttys file question

2013-09-08 Thread jb
Jack Mc Lauren jack.mclauren at yahoo.com writes:

 
 Hi list
 
 I'm trying to connect to my server via a serial port which is named ttyu6
under FreeBSD. In order to do that,
 I've decided to change /etc/ttys file like this:
 
 ttyu6    std.115200 cons25  on secure
 
 But I can not connect to my server with this configuration. But if I
change ttyu6 to cuau6, everything works
 fine! I don't understand the difference, would you please explain the
reason for me?
 
 Thanks in advance 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialcomms.html
26.3. Terminals
26.4. Dial-in Service 
26.5. Dial-out Service

jb





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org