Shop OBEX P1 Docs P2 Docs Learn Events
How to read address by i/o? — Parallax Forums

How to read address by i/o?

qummyqummy Posts: 16
edited 2006-05-06 04:06 in BASIC Stamp
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?

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-05-05 14:06
    If you're only connecting two BASIC Stamps together you don't need addressing.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-05-05 14:07
    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
  • qummyqummy Posts: 16
    edited 2006-05-06 03:43
    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 WilliamsJon Williams Posts: 6,491
    edited 2006-05-06 04:06
    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
Sign In or Register to comment.