ts-7000
[Top] [All Lists]

Re: [ts-7000] 7260 Serial BREAK issues with tcsendbreak

To:
Subject: Re: [ts-7000] 7260 Serial BREAK issues with tcsendbreak
From:
Date: Mon, 08 Jan 2007 12:39:26 -0500
>... but it appears that the implementation of the 
>serial driver on the EP3901 does not send a serial break using the linux 
>command 
>tcsendbreak(fd,0).
>
>Is this the confirmed by others?

There are two serial drivers for the 7260.

The driver for the serial ports built into the CPU is
drivers/serial/ep93xx_amba.c.  It has code in it that looks like it can
send a break. (I did not try it.)  This is /dev/ttyAM0 and /dev/ttyAM1.

The driver for the serial port in the FPGA is drivers/serial/tsuart.c; it
contains the code:

        static void tsuart_break_ctl(struct uart_port *port, int break_state)
        {
          // UART does not support BREAK

If I remember correctly, the device files for this driver are
/dev/ttyTS[0-2].

A break condition usually just means that the serial receiver saw a 0
bit where it expected a stop bit.  You can simulate this condition by
lowering the bit rate and sending a 00 byte.  

For example, if you are using 19200 bps, you can set the bit rate to
9600 bps, send a 00, wait briefly, then set the bit rate back to 19200.
Since the 9600 bps bits are twice as long, only half of the zero bits have
been transmitted by the time the receiver is looking for the stop bit.
The receiver sees a 0 for the stop bit and detects a break.

Mark S.



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU