Shop OBEX P1 Docs P2 Docs Learn Events
rs232 problem — Parallax Forums

rs232 problem

ArchiverArchiver Posts: 46,084
edited 2002-12-26 14:01 in General Discussion
Hi All:

I am Bill and new to this group , I enjoy the good coments you have
posted.


I have a dell 600 mhz laptop computer runing Windows ME and I can't
get it to talk to the basic stamp II in order to program it. The stamp
II hardware and software and cable all worked on my Toshiba pentium
120 computer. I checked my port settings and did not know how to
get them to program the stamp.

When I use the notify button it tells me I have the basic stamp
connected. When I run a program it will run through the program once
and seem not to see the looping comands. I know that i could get a
usb serial port or serial card I think both cost around $80.00 US
and I can't find any localy.

Thank you for the help .
Bill

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-12-26 13:34
    Please ignor my previous message. Here is a better description of
    my problem:

    I am interfacing with a DVD that has an RS232 port. Using
    HyperTerminal, I send the dvd the command ?C <cr> and I get 08. The
    08 according to the DVD manual is a "two digit integer". So when
    the DVD is on chapter 5 for example, I get 05.

    From the Stamp, I do the following:

    serData var word
    serOut outPin,baudRate,[noparse][[/noparse]"?C",cr]
    serIn inPin,baudRate,[noparse][[/noparse]serData]
    debug serData

    serData gives me a fluctuating digit of either 4 or 48. I am sure
    that my communication with the DVD is correct as I am doing many
    other commands without any problems.

    Can someone help...



    Al
  • ArchiverArchiver Posts: 46,084
    edited 2002-12-26 14:01
    You need to tell the Stamp to follow your DVD manual. Since the manual
    specified "two-digit integer" you might want to change your SERIN line to:

    SERIN inPin, baudRate, [noparse][[/noparse]DEC2 serData]

    This will cause the SERIN statement to convert the two-digit ASCII data (it's
    being sent as ASCII or you wouldn't have seen it in HyperTerminal) to
    decimal.

    -- Jon Williams
    -- Parallax


    In a message dated 12/26/2002 7:34:56 AM Central Standard Time,
    brownstamp@y... writes:

    > Please ignor my previous message. Here is a better description of
    > my problem:
    >
    > I am interfacing with a DVD that has an RS232 port. Using
    > HyperTerminal, I send the dvd the command ?C <cr> and I get 08. The
    > 08 according to the DVD manual is a "two digit integer". So when
    > the DVD is on chapter 5 for example, I get 05.
    >
    > From the Stamp, I do the following:
    >
    > serData var word
    > serOut outPin,baudRate,[noparse][[/noparse]"?C",cr]
    > serIn inPin,baudRate,[noparse][[/noparse]serData]
    > debug serData
    >
    > serData gives me a fluctuating digit of either 4 or 48. I am sure
    > that my communication with the DVD is correct as I am doing many
    > other commands without any problems.
    >
    > Can someone help...



    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.