Shop OBEX P1 Docs P2 Docs Learn Events
Serial communication problems — Parallax Forums

Serial communication problems

dev/nulldev/null Posts: 381
edited 2009-07-07 17:50 in BASIC Stamp
Hi all,

I have problems getting serial com between Stamps to work. I am trying both BS2 and BS2p combinations, and all tries results in jibberish data or timeouts. I have numerous other serial devices connected to both Master and Slave and they all work fine.
This is critical for my robot to work, and if I can't get this working my whole robot project will die a lonesome death.
- The baud rates are correct.
- The pins are correctly connected
- All units are connected to common ground.
- I've tried 2400 and 9600 speeds.

Master:
  SEROUT IOSlave/FCSlave, N2400 + Inverted, [noparse][[/noparse] 1 ]




Slave:
  SERIN SIOpin/FCpin, N2400 + Inverted, 1000, Cont, [noparse][[/noparse]indata]




Serial%20Connections.jpg

Any ideas?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
/dev/null

Comments

  • dev/nulldev/null Posts: 381
    edited 2009-07-04 23:41
    I tried with 1200 baud and no flow control, and that actually works. I loose flow-control but I can live with that.
    Or I'll buy a MAX3100.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    /dev/null
  • stamptrolstamptrol Posts: 1,731
    edited 2009-07-06 16:29
    Flow control usually works fine. The only thing I'd suggest is doing a test with the setup shown in the Editor Help file for SERIN.

    There's a chance the 1K and the two 470 ohm are just a bit too high.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • Tracy AllenTracy Allen Posts: 6,662
    edited 2009-07-07 15:41
    You need a back slash, not forward slash for the flow control pin.
    SEROUT IOSlave\FCSlave,...
    not
    SEROUT IOSlave/FCSlave,...
    Same for SERIN.
    The faulty syntax selects the i/o pin that is the result of dividing IOSlave by FCSlave, not what you want!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • dev/nulldev/null Posts: 381
    edited 2009-07-07 17:50
    omg. thanks! I will try that.
    (lol)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    /dev/null
Sign In or Register to comment.