ts-7000
[Top] [All Lists]

Re: [ts-7000] TS-7800 RS-485 guidance?

To:
Subject: Re: [ts-7000] TS-7800 RS-485 guidance?
From: Jim Jackson <>
Date: Thu, 28 Oct 2010 21:49:30 +0100 (BST)

On Thu, 28 Oct 2010, tom campbell wrote:

> 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 get the impression the guy is using an add on card? He mentions
"PC104/UART configuration" 

So to the o.p. : What hardware are you trying to get 485 going on?
It always helps to gives FULL details - 'cos in general we are not mind 
readers.

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

<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