Joe:
can't say for the TS-7800.
I do it for TS-7260. I'm running a full debian Sarge (not busybox
ts-linux as supplied by embeddedArm... so your mileage may vary)
I forget the details and I don't have time at the moment to dig out my
all my documentation and post it, but....
basically I think I had to (a) make sure some jumpers were set for
half/full duplex and setting drive levels to RS-485 instead of RS-232.
(b) seem to remember having to add something to for one of the serial
ports on the TS-7260. Probably not the case if running embeddedarm
supplied os on your 7800
(c)there's some memory map bits that you have to poke at to set
half-duplex/full duplex
> # Say hello
> echo -n "$PROGRAM_NAME: Changing com2(/dev/ttyAM1) to "
>
> declare poke=/usr/local/sbin/poke8
> declare memloc=0x22c00000
> if (( $INITIALIZING )) ; then
> # Switch com2 to RS-485 half-duplex 115Kbaud
> echo "RS-485, half-duplex, 115200 baud."
> memval=0x07
> else
> # Switch com2 to back to RS-232
> memval=0x00
> echo "RS-232."
> fi
>
> # Do it
> set +e # poke behaves badly, returns 7
> $poke $memloc $memval
>
> # Life is good
> exit 0
>
Once that's done... I use picocom /dev/ttyAM? (My terminal emulator of
choice) to talk half-duplex just fine. The supplied technologic
documentation is complete on all this stuff... you sometimes just have
to dig for it.
tc
On Thu, 2010-10-28 at 17:01 +0000, jtheath4u wrote:
>
> Hi All,
>
> First post to the group. Also just getting started with Technologic
> Systems' TS-7800. We're planning to use the board for motor controls.
>
> One of the first tasks is to get RS-485 up and running. Documentation
> is pretty sparse. Need to clear bit 15 in the PC104/UART configuration
> register. Baud rate is set by 3 bits in uart-associated status
> register.
>
> Do "normal" serial configuration operations work on the RS-485 port?
> Does one open the device (say /dev/ttts2) and read/write as any other
> TTY?
>
> Any guidance/instruction on 7800 RS-485 port use would be appreciated.
>
> Thank you, Joe
>
>
>
>
>
------------------------------------
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/
|