Xon / Xoff...
Hello Stampers...
Does anybody out there have any sample code for Xon / Xoff communications.
I'm just chasing something basic to get me started.
Thanks in advance,
Chris
Does anybody out there have any sample code for Xon / Xoff communications.
I'm just chasing something basic to get me started.
Thanks in advance,
Chris
Comments
need.
Original Message
From: Chris Anderson [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=XL82sdtOhBoqX2qlEBMlclKtHnGwzAiHFqrJrdNrLSiop4f4vcYp9fhOe0-j6Ea6jzee3Y1HLsU4dG0]fuel@b...[/url
Sent: Friday, February 15, 2002 6:49 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Xon / Xoff...
Hello Stampers...
Does anybody out there have any sample code for Xon / Xoff communications.
I'm just chasing something basic to get me started.
Thanks in advance,
Chris
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
communications.
> I'm just chasing something basic to get me started.
I don't have sample code but essentially when the buffer in your
receiver gets nearly full the receiver sends a command to the sender
to tell it "transmission off". After it processes data in the receive
buffer and there's room for more it sends the "transmission on"
message. I don't recall the specific character sequences used between
PCs but between two stamps you could invent your own. It needs to be a
command sequence that will not occur in the regular data being
transmitted.
Tim
Xon/Xoff flow control. The biggest issue with stamp comms is that stamps
can't buffer incoming data, and when on the serin or serout, they can't be
doing anything else.In other words, the sending stamp will probably never
receive the Xon/Xoff commands coming from the sending stamp.
The best flow control is using a flow control wire(s). The stamp manual
discusses the use of a flow control pin in Serin/Serout (Fpin), and I seem
to remember that the manual also says that the device at the other end of
the stamp must respond within one character.
You can also implement your own, by (say) asserting a pin on the receiving
stamp when it is ready to receive then going into the serin command. The
sending device will loop until that pin is high and then sending one
character or a group of characters.
HTH
Tony
Original Message
From: "Tim McDonough" <tim@m...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, February 16, 2002 3:31 AM
Subject: Re: [noparse][[/noparse]basicstamps] Xon / Xoff...
> > Does anybody out there have any sample code for Xon / Xoff
> communications.
> > I'm just chasing something basic to get me started.
>
> I don't have sample code but essentially when the buffer in your
> receiver gets nearly full the receiver sends a command to the sender
> to tell it "transmission off". After it processes data in the receive
> buffer and there's room for more it sends the "transmission on"
> message. I don't recall the specific character sequences used between
> PCs but between two stamps you could invent your own. It needs to be a
> command sequence that will not occur in the regular data being
> transmitted.
>
> Tim
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>