Shop OBEX P1 Docs P2 Docs Learn Events
two serial ports — Parallax Forums

two serial ports

ArchiverArchiver Posts: 46,084
edited 2001-06-22 18:40 in General Discussion
Markus-

I'll go out on a limb and say "probably". Since device #1 waits to
be prompted before sending data, and device #2 seems willing to wait
for its data, a Stamp may do the job just fine. Can you provide a
little more info on baud rates, data volume/rates, flow control
availability on the devices, etc?

If you're simply wondering whether the Stamp can receive serial data
in one serial mode and then transmit in another serial mode, the
answer is yes...but sequentially, not simultaneously.

Steve

On 22 Jun 01 at 13:00, schmidtoo@m... wrote:

> Can I use the basic stamp with two serial ports as a "protocol
> converter" ?
> One port would connect to a simple device with RS232 connectivity
> that provides a parameter on request. The other port would connect
> to a linux computer expecting a certain data protocol...

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-06-22 14:00
    Can I use the basic stamp with two serial ports as a "protocol
    converter" ?
    One port would connect to a simple device with RS232 connectivity
    that provides a parameter on request.
    The other port would connect to a linux computer expecting a
    certain data protocol.

    Any suggestion would be appreciated.

    Thanks, Markus
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-22 18:40
    The Stamp might work as a protocol converter for a
    reasonably quiet and slow network; however, there are
    typically better tools for this at the PC. PC serial
    port API's usually allow for bytes to be queued at the
    port, waiting to arrive or ship out. The Stamp must be
    ready to receive with zero notice, so two-way traffic
    would be difficult. I've had trouble getting it to
    work with a 9600 baud device that is relatively quiet.

    A 20-line loop on my BS2P executes something like 400
    times per second, i.e. one loop is 2.5 ms. At 9600
    baud, you need to catch a byte every ms, and even at
    2400 data integrity might be questionable.

    Caveats aside, do try this out if you can run at 2400
    baud or less. Let us know the outcome.

    Bob Pence


    --- schmidtoo@m... wrote:
    > Can I use the basic stamp with two serial ports as a
    > "protocol
    > converter" ?
    > One port would connect to a simple device with RS232
    > connectivity
    > that provides a parameter on request.
    > The other port would connect to a linux computer
    > expecting a
    > certain data protocol.
    >
    > Any suggestion would be appreciated.
    >
    > Thanks, Markus
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed
    > with. 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/
    >
    >


    __________________________________________________
    Do You Yahoo!?
    Get personalized email addresses from Yahoo! Mail
    http://personal.mail.yahoo.com/
Sign In or Register to comment.