View Full Version : BS2 and BS2px communication

01-23-2010, 04:08 AM

i have been trying to get my bs2 and my bs2px to communicate with each other using the serout and serin commands. i have had little luck with getting it to work. im trying to get the bs2 to send numaric values to the bs2px so that it·will display·them in the debug terminal. the closest that i have gotten is the bs2px displays random and crazy numbers in the debug terminal. i could use some help with getting this system to work out.


Mike Green
01-23-2010, 04:12 AM
You're not going to get much help if you don't supply enough information like a schematic of how the two Stamps are connected and attaching your BS2 and BS2px programs to another message.

Remember that the Baud constants used in the BS2 and BS2px for a given Baud are different.

01-23-2010, 08:54 AM
Welcome Bazzee, :-)

For the best help on the code you are using, you can use the attachment manager to upload the source code (file.bs2 & file.bpx) and then we can see how the program is working or not working properly.


Joshua Donelson
www.parallax.com (http://www.parallax.com)

01-23-2010, 09:33 PM
And note that the baud-rate constants are DIFFERENT between the BS2 'plain' and the BS2px.

Meaning -- SEROUT 0, 16468, ["Hi!", CR]
will do 9600 baud on a BS2, but I don't know WHAT it'll do on a BS2px -- that 16468 number will need to be changed on the BS2px.