Shop OBEX P1 Docs P2 Docs Learn Events
SEROUT Code to Hyperterm — Parallax Forums

SEROUT Code to Hyperterm

ArchiverArchiver Posts: 46,084
edited 2001-04-01 00:53 in General Discussion
Hi,

I have a setup where there is a pin on the stamp, pin 8, that uses the
serout command. The command is supposed to send out a variable to
hyperterminal. However, this does not work. I get nothing in to
hyperterminal.

1. First off, is the baud rate 9600?

2. Second. . . what is the exact code I would use to send a variable
byte out of pin 8 so that hyperterminal can read and display it?

3. If I end up doing this wirelessly(TWS and RWS 434), should I still
send a synch and junk bit with the information if there is no stamp at
the other end?

Thanks a lot!

Corey C.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-03-31 14:08
    Baudd rate is 9600. You have to serout on P16 to go to Hyperterminal via the
    serial cable.. Be sure Stamp Editor is turned off to free up Com1.

    Sid
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-31 14:11
    One more thing - I use Hyperterminal to control my model train. If you have
    any querstions regardding communicating with Stamp from Hyperterminal let me
    know.

    Sid
    Newzed@a...
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-31 18:25
    I am currently working on and making a lot of progress with my GPS guided r/c car and airplane. The system uses the serin and serout command and I used the good old dos program called Telix to view the results of what I was getting from the GPS serial connection before I did anything else. It is an ultra simple dos program and a download site like www.download.com or www.shareware.com will have it for free. It will let you see what the stamp is outputting with no problem, I tried using hyperterminal and could not get it to work correctly even with the proper baud, parity and stop bit.

    Just fyi.

    Matt klarich


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Do You Yahoo!?
    Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-31 19:35
    [font=arial,helvetica]Hi guys..is there a problem with yahoo Egroups... this is the third message I
    received all week
    [/font]
  • ArchiverArchiver Posts: 46,084
    edited 2001-04-01 00:53
    The first thing that may be tripping you up is the modifications that need
    to be made to the serial cable. See the stamp manual under 'serout' for a
    detailed explanation.

    The second thing that may be giving you problems is that physically pin 8 is
    actually P3 (I/O #3) as far as serout is concerned. See page 200 (v1.9) of
    the stamp manual if you are confused by this.

    Here is code that will send out data on pin 8 (P3) at 9600 N81:
    byteMe var byte
    byteMe = "A"
    serout 3, 16468, [noparse][[/noparse]byteMe]

    If you wanted to send data on P8 (physical pin # 13), use this code:
    byteMe var byte
    byteMe = "A"
    serout 8, 16468, [noparse][[/noparse]byteMe]


    Also, someone suggested using P16 (if you have the carrier board). This
    might give you problems because of the stamp resetting itself with the ATN
    line. You'll need to make modifications to the cable once again. See the
    figure I-17 and the 'serin' command in the manual (v1.9) for the why's and
    how-to's.


    To answer your third question ... I have no clue, never used those devices..


    --Craig

    Original Message
    From: the_coin_guy@y... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=XzlrJ7ymURsyg7VztSmK_xJe86eQH4kgu-8JM4zY-nwbfO6V73rspb_kF5dZ9i8CjfiK0lUO40l9_yo4]the_coin_guy@y...[/url
    Sent: Saturday, March 31, 2001 6:46 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] SEROUT Code to Hyperterm


    Hi,

    I have a setup where there is a pin on the stamp, pin 8, that uses the
    serout command. The command is supposed to send out a variable to
    hyperterminal. However, this does not work. I get nothing in to
    hyperterminal.

    1. First off, is the baud rate 9600?

    2. Second. . . what is the exact code I would use to send a variable
    byte out of pin 8 so that hyperterminal can read and display it?

    3. If I end up doing this wirelessly(TWS and RWS 434), should I still
    send a synch and junk bit with the information if there is no stamp at
    the other end?

    Thanks a lot!

    Corey C.




    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sign In or Register to comment.