no input buffer limitations
Archiver
Posts: 46,084
Possible approaches:
1. Use flow control pin from Stamp to PC's CTS input. See SERIN
for more details.
2. Stamp periodically requests direction from PC, PC sends
instructions if appropriate, or sends no-op in response.
3. PC sends code to signal instruction ready, Stamp sends code to
signal ready to receive instruction, PC then transmits instruction.
4. PC transmits instruction blindly, repeats until Stamp acks
successful receipt.
5. Use external buffer to queue up PC instructions for Stamp
retrieval at later time.
I'd go with #1 if you have the I/O pin to spare. It uses the
serial port's and Stamp's built-in logic to advantage. Ought to
work sweet and provide best throughput with minimal coding.
Regards,
Steve
On 26 Apr 01 at 17:15, johncprice@y... wrote:
> I am thinking of using a BS2p to build something like a pen plotter
> which would receive instructions from a PC over RS-232. The trouble
> is that the BS2 will be pretty busy sometimes and will miss commands
> from the PC. I understand that the BS2 has no input buffer for
> async serial communications. Are there some nice ways out of this
> problem?...
1. Use flow control pin from Stamp to PC's CTS input. See SERIN
for more details.
2. Stamp periodically requests direction from PC, PC sends
instructions if appropriate, or sends no-op in response.
3. PC sends code to signal instruction ready, Stamp sends code to
signal ready to receive instruction, PC then transmits instruction.
4. PC transmits instruction blindly, repeats until Stamp acks
successful receipt.
5. Use external buffer to queue up PC instructions for Stamp
retrieval at later time.
I'd go with #1 if you have the I/O pin to spare. It uses the
serial port's and Stamp's built-in logic to advantage. Ought to
work sweet and provide best throughput with minimal coding.
Regards,
Steve
On 26 Apr 01 at 17:15, johncprice@y... wrote:
> I am thinking of using a BS2p to build something like a pen plotter
> which would receive instructions from a PC over RS-232. The trouble
> is that the BS2 will be pretty busy sometimes and will miss commands
> from the PC. I understand that the BS2 has no input buffer for
> async serial communications. Are there some nice ways out of this
> problem?...
Comments
which would receive instructions from a PC over RS-232. The trouble is
that the BS2 will be pretty busy sometimes and will miss commands from
the PC. I understand that the BS2 has no input buffer for async serial
communications. Are there some nice ways out of this problem? How
about some sort of software handshaking where the PC asks first if the
BS2 is ready to accept commands? Any advice? Thanks!!