ts-7000
[Top] [All Lists]

Re: [ts-7000] RS485HD on the TS-7800

To:
Subject: Re: [ts-7000] RS485HD on the TS-7800
From: "Michael Schmidt" <>
Date: Mon, 14 Jan 2008 11:33:21 -0700 (MST)
On Mon, January 14, 2008 10:49 am, James Bridson wrote:
> I'm migrating from a TS-7250 to a TS-7800 and am using RS485 in half
> duplex mode. Does anyone have an example of successfully configuring
> COM2 for RS485HD activity on the TS-7800? I've tried to configure the
> TS-USART using the AUTO485HD ioctl call (TIOC_SBC485) but this seems to
> be unsupported in the TS-7800 port at the moment. I've also tried poking
> the registers directly based Michaels draft documentation (ts7800.html)
> but I cannot seem to get any data out!
>
> I tried:
>
> 1. Opening /dev/ttyS1 (for COM2);
> 2. Setting baud rate etc.;
> 3. Clearing 0xe800000c top bit (bit 15) to zero to set RS485 mode;
> 4. Looking for signal on pins 4 (+) and 9 (-) ...
>
> What confuses me a little is that the table in Michael's document shows
> two sets of registers for COM2. Should I be using a different device?

Yes.  The registers you are setting are for the TS-UART, not the CPU UART.
 You appear to be trying to use uart #2, which would be at /dev/ttts2. 
You may want to make sure you have the latest tsuart driver from
ftp://ftp.embeddedARM.com/tsuart-2.6/tsuart7800.ko; earlier ones had a bug
where some of the ports weren't detected.

There are multiple register sets for COM2 because the some of the flow
control pins on COM2 provided by the CPU (/dev/ttyS1) are overlaid with
the second functionality of RS-485/RS-422 port(s) when those ports are
open.

> Thanks for any advice
>
> James


 ______   Best Regards,
|__  __/                  Michael Schmidt
   ||                   Software Engineer
   ||echnologic Systems (EmbeddedARM.com)
   || (480)    16610 East Laser Drive #10
   |/ 837-5200   Fountain Hills, AZ 85268
       http://oz.embeddedarm.com/~michael



 
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