Shop OBEX P1 Docs P2 Docs Learn Events
About B.Stamps serial RS232 protocol ( any info please ? ) — Parallax Forums

About B.Stamps serial RS232 protocol ( any info please ? )

JoeJoe Posts: 184
edited 2005-10-07 13:22 in BASIC Stamp
Hi,

There are many kinds of serial protocols like:
Modbus, Profibus, DeviceNet, DNP, IEC, etc....

Which is the protocol of basic stamps ?

There is some software that must be configured
and usually the software "ask" about the protocol.

But I don't know about information of this.

Thanks, Joe

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-10-07 00:58
    If you're interested in downloading a new program to the BASIC Stamp then there are documents on our web site (for third-party developers) that explain the dowload timing and protocol.

    Otherwise, there is none. If you want to "talk" with a BASIC Stamp, you get to decide -- by writing your BASIC Stamp code to handle the protocol you want to use.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • allanlane5allanlane5 Posts: 3,815
    edited 2005-10-07 13:22
    Joe:

    The protocols you mention are built on top of the "physical layer" of either RS-232, or RS-485. The protocols are then definitions of a series of bytes (frame-sync byte(s), address byte(s), data byte(s), checksum) which get sent on the "physical layer".

    The BS2 is much simpler than that -- it provides a serial port, and a programmable device. So, you have the "physical layer" supplied by the BS2. But, any higher level byte-oriented protocol must be programmed by you into the chip.

    The BS2 provides "SEROUT" and "SERIN" keywords that let you send and recieve RS-232 formatted data. From that you can build the higher level protocols if you desire.
Sign In or Register to comment.