ts-7000
[Top] [All Lists]

[ts-7000] Re: peek/poke question about rs485 on 7260

To:
Subject: [ts-7000] Re: peek/poke question about rs485 on 7260
From: "bdon003" <>
Date: Wed, 07 May 2008 13:39:55 -0000
Hey Jim,

     I can answer your second question, and hopefully that'll lead to an answer 
of your first.  
The prefix 0x denotes hex, and each hex value represents 4 bits.  I don't know 
exactly how 
poke is working, but 0x0001 (16-bit) should read the same as what you were 
passing it, 
0x01 (8-bit).  So that doesn't seem to be the problem.  Poke32 should return 8 
values.  
Two leading 0's were probably cut off from the return value that you received 
from the 
function.  Check to make sure the other registers needed for RS485 are setup 
correctly.  

Brandon

--- In  "linuxmill" <> wrote:
>
> I have a 7260 in which I want to enable RS485FD prior to starting a
> service that provides a modbus RTU interface.  
> 
> A cat of /proc/SBC/info  shows the following:
> 
> BoardID:  TS-7260
> RS485: yes
> AnalogToDigital no
> Auto485:  yes
> 
> I tried using poke16 to set (the bit for Auto485 Full Duplex mode) as
> follows:
> 
> poke16 0x22C00000 0x01
> 
> but don't see any difference in the serial port behavior.
> 
> Also, I'm confused about the function of peek:
> if I do a peek32 (32 bits, ostensibly), then why do I get a return
> value of something like 0x700070  ?   that's a lot more than 32 bits
> worth of data.
> 
> I have not been able to find documentation that clearly tells me how
> to turn on RS485 on com2 in full duplex mode so that I can start the
> software that uses this feature.
> 
> There are lots of clues, but I can't tell how actually get this job done.
> 
> Thanks for any help you can provide.
> 
> Jim
>




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

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