serial modem

Brent Bloxam brentb at beanfield.com
Mon Jun 29 15:41:28 UTC 2009


kalin m wrote:
> 
> hi all...
> 
> my first time using serial ports and modems. the modem is hooked up 
> using RS-232 cable...
> 
> modem specs:
> 
> • Baud Rate: 115.2kbps
> • Bits: 8
> • Stop Bits: 1
> • Parity: none
> • Hardware Handshaking: Yes
> 
> 
> my /etc/ttys:
> 
> ttyd0 "/usr/libexec/getty std.115200" dialup on
> ttyd1 "/usr/libexec/getty std.115200" dialup on
> 
> then i do:
> # kill -HUP 1
> 
> ps shows:
> 62496 0.0 0.2 3184 952 ?? I 10:53PM 0:00.00 /usr/libexec/getty 
> std.115200 ttyd0
> 62667 0.0 0.2 3184 1004 ?? I 11:37PM 0:00.00 /usr/libexec/getty 
> std.115200 ttyd1
> 
> according to the handbook i would see the above. i'm not sure if i need 
> both ttyd0 and 1 since i have hooked only one modem but there is no 
> explanation about that in the handbook.
> 
> messages says:
> Jun 28 23:37:17 moo getty[62667]: open /dev/ttyd1: No such file or 
> directory
> 
> and no other entries... so i guess that settles the need of ttyd1!?!
> 
> ok. so now i put in /etc/remote:
> sio0|com1:dv=/dev/cuad0:br#115200:pa=none:
> 
> and, following the instructions in the handbook, try reaching the modem 
> doing:
> # tip -v cuad0
> 
> i get:
> tip: unknown host tip0
> 

I've no experience with serial modems, but having read the man pages I 
believe your remote(5) line is incorrect.

sio0|com1:dv=/dev/cuad0:br#115200:pa=none:

sets system names sio0 and com1, then you try to execute tip to connect 
to cuad0. Is there an entry for cuad0 in your /etc/remote? I'm confused 
as to why tip is returning 'unknown host tip0' however.

Give `tip -v sio0` a shot, or change the system names in your 
/etc/remote line


More information about the freebsd-questions mailing list