ts-7000
[Top] [All Lists]

[ts-7000] RS485 HD on TS7390

To:
Subject: [ts-7000] RS485 HD on TS7390
From: "briandgallaway" <>
Date: Thu, 13 Sep 2012 17:59:38 -0000
I am trying to use libmodbus3.0 on a TS7390 board to do modbus communications 
over a half duplex RS485 port.  I'd be using pins 1 & 6 from the COM2 header.

The board is running kernel 2.6.21-ts.  From what I understand, I must first 
enable the RS485 HD mode before I can use /dev/ttts3 for rs485 modbus 
communication.

I attempted to use the ioctl call referenced in the documentation to achieve 
this. From what I gather from searching the group posting, that will not work 
with kernel 2.6.21.  In my case, the ioctl call was always returning -1.

So now it looks like I'll need to write to the registers using mmap.  However, 
I do not know which address to write to for the TS7390.  I've seen posts doing 
similar for the TS7260 and TS7800, but nothing for the TS73xx series.

If someone could point me in the write direction as far as which address to 
write to, or better yet provide the few lines of sample code that'd set up half 
duplex 485 at 9600 baud on /dev/ttts3, it'd be very much appreciated.

Thanks,
Brian Gallaway




------------------------------------

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