[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kermit works in DOS with exact same settings but not Debian.



Quoting Christopher R. Barry (cbarry@2xtreme.net):
> 
> I think I need help from a serial port guru.

Sorry, I'm not that.

> Under Linux I do the exact same thing except I specify /dev/ttyS0
> instead of COM1 for the first serial port. When I try to transfer a
> file it goes to the transfer screen and the errors counter just slowly 
> accumulates. The HP calc indicates that there is serial activity; they 
> just don't get the connection right I guess.
> 
> Again, this all works perfectly under DOS. My /etc/serial.conf looks
> like:
> 
> ----------------------------
> ###AUTOSAVE###
> /dev/ttyS0 uart 16550A port 0x03f8 irq 4 baud_base 9600 spd_normal skip_test
> /dev/ttyS1 uart 16550A port 0x02f8 irq 3 spd_normal skip_test
> ----------------------------

I'm not familiar with the role of this file, but I assume it's
being used as input to a setserial command somewhere. And that's your
mistake. setserial is unlikely to need any tweaking from the Debian
default on any normal machine. What's you've done is to tell Debian
that your UART hardware can only run as fast as 9600, whereas it's
likely to be running at 115200. Here's mine:

$ setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
        Baud_base: 115200, close_delay: 50, divisor: 0
        closing_wait: 3000, closing_wait2: infinte
        Flags: spd_normal skip_test session_lockout

> Is there some magic I can work with stty and setserial to get ttyS0 as 
> close to the way it is under DOS as possible, or do any of you serial
> gurus have any connection debug tips or know anything I could try?

What you want to set is stty, and this can be done with
$ stty 9600 < /dev/ttyS0
if you are in the dialout group (and the port is g+rw).

Cheers,

-- 
Email:  d.wright@open.ac.uk   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Reply to: