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