Hi ynezz,
On Sat, 5 Jun 2010, Petr ?tetiar wrote:
> 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.
>
> 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".
Ah, I missed this. I really should read the manual more carefully.
Many thanks for pointing this out.
>> 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.
Wonderful, I'll do the magic rs485 byte setting above and try again.
Thanks very much for the reply - really useful.
Jim
------------------------------------
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/
|