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/
|