PDA

View Full Version : How to read address by i/o?



qummy
05-05-2006, 01:27 PM
hello all,
this is pertaining to connecting the 2 basic stamps together, one as a master and another as slave.
if a slave require an address to be read from master, how is this could be done?

Chris Savage
05-05-2006, 09:06 PM
If you're only connecting two BASIC Stamps together you don't need addressing.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com (mailto:csavage@parallax.com)

Jon Williams
05-05-2006, 09:07 PM
If you only have one slave, why do you to add an address to your protocol? If you mean you want to read something inside the slave, then you need to setup a command set in your protocol that both sides understand.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax

qummy
05-06-2006, 10:43 AM
i am bulding a supervisory and control master and slave connection.it will be as if, the bs2 slave that i'm connecting is part of the slaves nodes of addresses (0-255). i,ve been trying to resolve this issue with SNAP protocol with destination address byte, source address byte that carries some data with SERIN/SEROUT but failed.
how am i suppose to this actually. please help..

Jon Williams
05-06-2006, 11:06 AM
You might consider reading Jan Axelson's book, "Serial Port Complete" -- it gets into networking issues with the BASIC Stamp.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax