Shop OBEX P1 Docs P2 Docs Learn Events
Serial PBASIC Command Question(s) — Parallax Forums

Serial PBASIC Command Question(s)

ArchiverArchiver Posts: 46,084
edited 2001-01-11 03:15 in General Discussion
If I connect two BSIIs by one pin on each stamp, and I have one of them do a
serout and the other a serin, do I need any intermediate electronics to do
this? Do the serial commands block (aka halt program execution until some
data is there to be received)? If not, what happens if the stamp is doing
another task when the serial data comes in? Does it miss the info, or is it
hidden away somewhere until I use a serin to get it? Judging by my
experience with the FIRST robot controllers and reading some stuff on
wireless serial transmissions, I think it must do that. Thanks for your
time.


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-01-10 16:39
    If I connect two BSIIs by one pin on each stamp, and I have one of them do a
    serout and the other a serin, do I need any intermediate electronics to do
    this? Do the serial commands block (aka halt program execution until some
    data is there to be received)? If not, what happens if the stamp is doing
    another task when the serial data comes in? Does it miss the info, or is it
    hidden away somewhere until I use a serin to get it? Judging by my
    experience with the FIRST robot controllers and reading some stuff on
    wireless serial transmissions, I think it must do that. Thanks for your
    time.


    ______________________________________________
    FREE Personalized Email at Mail.com
    Sign up at http://www.mail.com/?sr=signup
  • ArchiverArchiver Posts: 46,084
    edited 2001-01-10 16:40
    If I connect two BSIIs by one pin on each stamp, and I have one of them do a
    serout and the other a serin, do I need any intermediate electronics to do
    this? Do the serial commands block (aka halt program execution until some
    data is there to be received)? If not, what happens if the stamp is doing
    another task when the serial data comes in? Does it miss the info, or is it
    hidden away somewhere until I use a serin to get it? Judging by my
    experience with the FIRST robot controllers and reading some stuff on
    wireless serial transmissions, I think it must do that. Thanks for your
    time.


    ______________________________________________
    FREE Personalized Email at Mail.com
    Sign up at http://www.mail.com/?sr=signup
  • ArchiverArchiver Posts: 46,084
    edited 2001-01-11 02:36
    If I connect two BSIIs by one pin on each stamp, and I have one of them do a
    serout and the other a serin, do I need any intermediate electronics to do
    this? Do the serial commands block (aka halt program execution until some
    data is there to be received)? If not, what happens if the stamp is doing
    another task when the serial data comes in? Does it miss the info, or is it
    hidden away somewhere until I use a serin to get it? Judging by my
    experience with the FIRST robot controllers and reading some stuff on
    wireless serial transmissions, I think it must do that. Thanks for your
    time.


    ______________________________________________
    FREE Personalized Email at Mail.com
    Sign up at http://www.mail.com/?sr=signup
  • ArchiverArchiver Posts: 46,084
    edited 2001-01-11 03:15
    [font=arial,helvetica]In a message dated 1/10/01 9:09:13 PM Central Standard Time, yanroy@usa.com
    writes:


    If I connect two BSIIs by one pin on each stamp, and I have one of them do a
    serout and the other a serin, do I need any intermediate electronics to do
    this? ·Do the serial commands block (aka halt program execution until some
    data is there to be received)? ·If not, what happens if the stamp is doing
    another task when the serial data comes in? ·Does it miss the info, or is it
    hidden away somewhere until I use a serin to get it? ·Judging by my
    experience with the FIRST robot controllers and reading some stuff on
    wireless serial transmissions, I think it must do that. ·Thanks for your
    time.



    At the very least, you might want to put a resistor between the two pins.
    That way, if one goes low and the other high, there won't do any damage.

    BS2s have a timeout parameter in SERIN that will let them move on to other
    processing if serial data does not arrive. ·If it arrives while the reciever
    Stamp is doing something else, it is lost.

    I believe Al Williams (no relation) has a "PAK" co-processor that's a serial
    buffer wil prevent lost data (www.al-williams.com/awce)

    -- Jon Williams
    -- Dallas, TX[/font]
Sign In or Register to comment.