ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: rs485 on ts7260...

To:
Subject: Re: [ts-7000] Re: rs485 on ts7260...
From: Petr Štetiar <>
Date: Sat, 5 Jun 2010 17:41:14 +0200
Jim Jackson <> [2010-06-04 23:30:17]:

> The TS7260 option provides a diff pair for TX and a diff pair for RX on 
> /dev/ttyAM1 (COM2). I have a device which has similar - the TX pair of one 
> is connected to the RX pair of the other.
> 
> You are probably saying that this is not proper rs485. Fine, sorry for 
> using the wrong terminology.

Hi,

I think, that it's full duplex rs485, using two TX+RX+, TX-RX- pairs. And from
the docs it seems, that ts72xx supports full duplex operation:

"The COM2 Port supports RS-485 half duplex or full duplex operation."

and 

"COM2 will default to RS-232 mode at reset (COM2 mode register = Hex 00). In
order to switch COM2 into Full duplex RS-485 mode, the COM2 Mode register at
0x22C0_0000 must be set to Hex 01. In this mode, the TX drivers are always
asserted".

> So rephrasing, is anybody using the rs485 option on the TS7260 in this 
> mode?

I've just used it in half duplex mode and it was working. I've set
COM2 mode register to 0x04 (half duplex 9.6Kbaud), then called ioctl
TIOC_SBCS485 which enable automatic RX/TX control logic (necessary for
half-duplex operation, you don't need it).

> Can they verify that programmatically one can just treat it as a normal 
> full duplex serial connection?

Yes, apart from rs485 setup bits I've used just my librs232 with it.

-- ynezz


------------------------------------

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