Shop OBEX P1 Docs P2 Docs Learn Events
Connecting BS2 using simple Serial Communication — Parallax Forums

Connecting BS2 using simple Serial Communication

qummyqummy Posts: 16
edited 2006-03-07 07:06 in BASIC Stamp
refering to nuts and volts column #16.
can i have the complete coding for the two BS2 to communicate with each other.
one as transmitter and another as the receiver.
thank you very much.

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-02-28 10:24
    qummy -

    A request has been made to have that corrected. The appropriate files should be available within the next 24 hours. Thanks for reporting the error!

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • qummyqummy Posts: 16
    edited 2006-03-02 09:01
    well..ive tried the example from the 'PBasic help'. for sending simple 8bits data,using SERIN and SEROUT.
    but it doesnt seem to work. what i did was, i run receiver and sender program on two different PCs and connected the circuit as shown.is this correct? please help. i'm a beginner.
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-03-02 11:25
    qummy -

    How did you connect the two PC's together? You need to use a null modem cable, or wire them as a null modem cable is wired, as follows, at minimum:

    Tx ===========> Rx
    Rx ===========> Tx
    Ground =====> Ground

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • qummyqummy Posts: 16
    edited 2006-03-06 06:08
    thanks..its working properly now
  • qummyqummy Posts: 16
    edited 2006-03-07 06:33
    If two units of BS2 are connected. Can a BS2 works as a transmitter and receiver at the same time. If yes. How so?
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-03-07 07:06
    qummy -

    If you're asking if full duples is possible, the answer is no. The PBASIC Stamps only support half duplex transmission. This is due to a software UART rather than a hardware UART.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->

    Post Edited (Bruce Bates) : 3/7/2006 7:43:01 AM GMT
Sign In or Register to comment.