Serial PBASIC Command Question(s)
Archiver
Posts: 46,084
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
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
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
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
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
writes:
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]