>Armed with this knowledge, I connected what I believe is line 23
>(serial Rx) of the OOPic-R to line 22 (serial Tx) of the OOPic-S (pin
>37 on the 40 pin connector) and line 22 (serial Tx) of the OOPic-R to
>line 23 (Serial Rx) of the OOPic-S (pin 39 of the 40 pin connector)
Did you also connect a ground wire?
>Sub Main()
> LED.IOLine = 7
No delay at startup can be dangerous when playing with serial I/O.
> LCD.String = Str$(S.Value)
LCD = S should be sufficient. You are after all just dealing with ASCII bytes.
>What happens is that the OOPic-R never seems to have received
>anything (no LED and no LCD output) while the OOPic-S flashes it's
>LED on and off a couple times per second. What's wierd is it does
>that even when I disconnect the serial lines.
Hm. Something's borked.
>If I can get this working, I'm assuming the next step is to introduce
>some flow control by dim'ing a couple of oDio1 lines on each,
>connecting one pair of them for a clear to send signal for the OOPic-
>R to know when it can send data, and the other pair so that the OOPic-
>S knows when it can send. The CTS lines would be owire'd to the
>S.Received property so that it changes from high to low when data is
>received to prevent the sender from sending more data until the
>receiver has read in what it has already received. And I would
>probably set it up to be event driven rather than using any loop.
Sounds like it's doable. I get the impression that you want the two
OOPics to act as peers rather than a master/slave
relationship. Could get tricky.
>Am I anywhere close here? I would appreciate any help, including
>tips on troublshooting this one thing at a time. For example, is it
>possible to have a single OOPic talk to itself by connecting it's own
>line 22 to it's own line 23 to verify that it can send and receive
>data?
Certainly.
> And when the data is sent as a string, is it received in such
>a way that a lcd.string=str$(s.value) would even work, or is that
>going to produce ASCII numbers for just the first character?
Sending strings between OOPics guarantees that you will lose data,
since the RX buffers can only hold four bytes.
Since you have an OOPic-R, why don't you work on your serial mojo by
communicating between it and your PC first? E.g. get what you send
from your PC to echo back to the PC as well as display on the LCD.
...Andy
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment