[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

476.0. "What does 'BREAK' generate" by SNO78C::MCLAREN (Andrew McLaren) Wed May 20 1987 06:43

    Can someone tell me what character(s) are generated by a break key
    on a three wire connection. I gather that break drops DTR for a
    defined period on a modem connection, but what occurs when these
    signals are not availiable? According to the VT220 Programmers manual,
    no code(s) are generated - I can only assume that terminal servers
    are more intelligent than I ever gave them credit for!
    
    For the record, I connected two 220's back to back, but the only
    thing that seemed to be generated was a single null character. I
    don't really believe this..
    
    Thanks,
    
    Andrew M.
T.RTitleUserPersonal
Name
DateLines
476.1Break means the wire broke!SNDBOX::SMITHWilliam P.N. (WOOKIE::) SmithWed May 20 1987 11:1115
    Break is defined as dropping the transmit line (not DTR, though
    DEC may play some games with that, though I would be surprised)
    for 320 (?) milliseconds.  This is far longer than any one character
    would be, and is a special 'out of band' signalling method.  If
    you see what looks like a really long character of all zeros with
    no stop bit where you expect it (some terminals will carve away
    the first 8 bits of this and say "aha!  a null!"), that's a break.
    I gather it originally came from the fact that when a line would
    come down (physically break) you could detect it this way (back
    when terminals used current loops).  There's also a 'long break'
    that lasts for some 2 seconds (control-break on VT-100s) that can
    be used for other things.
    
    Willie
    
476.2ALBANY::KOZAKIEWICZYou can call me Al...Fri May 22 1987 13:228
Technically, a break is at least one bit time longer than a complete
character for the baud rate you are using.  Making it an arbitrary 320ms
is a quick and dirty way of accomplishing this.  What happens is that
the input shift register (UART or software technique) does not see a
transition back to logical zero at the end of a character time.  This
generates what is known as a framing error.  Break will also drop DTR
on some terminals, but it's "true" definition is what I said above.