Hi Daniel,

On Sun, Jun 22, 2008 at 10:49:17AM -0400, Daniel Kahn Gillmor wrote:
> On Sat 2008-06-21 13:33:25 -0400, Marc Haber wrote:
> > To be a fully featured serial console application, one needs the
> > possibility to set serial port parameters other than the baud
> > rate. I have not seen any serial port needing something other than 8
> > bits, no parity, 1 stop bit in a long time, but that feature might
> > be needed in the future.
> 
> Thanks, this is a good suggestion.  Since cereal relies on screen, you
> should be able set 7 bits instead of 8 bits by appending ,cs7 to the
> baud rate.  e.g.
> 
>  cereal-admin create sevenbitcomms /dev/ttyS3 115200,cs7 foo foogroup
> 
> However, I haven't been able to test this properly because i don't
> have any equipment that natively does 7bit serial connections.
> 
> I tried it against a grub instance configured with 
> 
>  serial --unit=0 --speed=115200 --word=7 --parity=no --stop=1
> 
> but was unable to get an active communication (though i don't know how
> well-tested grub's --word=7 option is either).

I used a ser2net as the other side, and 9600,cs7 seems to work just
fine.

> Unfortunately, searching through screen(1) i don't see how to set the
> stop bits or parity of the connection.  Shall i clone this bug and
> reassign the cloned bug to screen, referring to these features?

I think that would be a good idea. I tried sttying the tty to the
appropriate values before starting the cereal session, but tht didn't
seem to work. At least, no communication was possible, and the values
were reset to no parity 1 stopbit after I stopped the cereal session.
So screen does not only not allow setting these parameters, it seems
to set them to hard-coded defaults (which luckly are appropriate for
the vast majority of use cases these days).

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to