Shop OBEX P1 Docs P2 Docs Learn Events
BS2 px at 28.8 — Parallax Forums

BS2 px at 28.8

KovaKova Posts: 12
edited 2005-10-12 03:45 in BASIC Stamp
Hi, I would like to try to use BS2 px to communicate with serial device at 28.8 Kb. , and "comm formula" is giving me result 118.8. If it's integer #, then it should be 119? Has anyone tried this before? Is it possible to do "Auto baud detect" since I don't know what would be settings on that device. Possible settings are: 1200, 2400, 4800, 9600, 14400, 19200 and 28800·but always 8n1. I was able to do this with VB6 by sending "RST" command and waiting for correct answer starting with "IDxx..." In case of error message, I would move to next port. Any sample code or good link would be appriciated.
Thanks,
Kova

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-10-12 03:45
    Use 119 -- that will be fine. You must also note the polarity of the signal; 119 would be true mode (1 bit is low), you need to add $4000 to the baud value for inverted (1 bit is high).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.