Shop OBEX P1 Docs P2 Docs Learn Events
Question about the programming serial port — Parallax Forums

Question about the programming serial port

SiCCSiCC Posts: 21
edited 2007-03-09 07:28 in BASIC Stamp
Sorry if this is a stupid question, I tried searching but couldnt find a definitive answer.

Why is it that when connected to the onboard serial port, I can't get any data (not even garbled) in a terminal program?· I read about the Excel program,· but I don't want/can't use·that.· I just want it to spit out data.· I'm just curious if I'm missing a step or if it just won't work period?

Thanks.

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-03-09 02:59
    Please post your programme.
  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-09 03:21
    The Stamps are certainly capable of "spitting out data" through the onboard serial port and it does work. There must be something about what you're doing or how you're doing it that's preventing it from working. You're going to have to supply more information if you want someone to make suggestions or try to help you to figure out how to do it successfully.
  • SiCCSiCC Posts: 21
    edited 2007-03-09 04:52
    Program is on another PC, but here's all it does (basically the sample code):

    Takes a reading from the Accelerometer every 200ms, and sends this info to the Debug window. I send my info using the DEBUG command, and I was hoping I could catch that info in a terminal program, such as procomm or hyperterminal. I've set up my com settings same way as the debug settings. 9600 n 8 1, I've tried no flow, hardware & software. Even if this was wrong, I should still see some garbled info coming across, correct? I don't even see anything in the activity window of procomm.

    So what I want to figure out, is there a difference between how the editor sees this info compared to a reg terminal app?
  • Martin HebelMartin Hebel Posts: 1,239
    edited 2007-03-09 04:57
    The debug Window is nothing more than a terminal window. There's no reason you should see a difference. I do huge amounts of data comms using DEBUG, and I have no ideas. Sorry for the post about nothing, but just wanted to point out there SHOULD be no difference.

    -Martin

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    StampPlot - GUI and Plotting, and XBee Wireless Adapters
    Southern Illinois University Carbondale, Electronic Systems Technologies
  • SiCCSiCC Posts: 21
    edited 2007-03-09 05:39
    Exactly what I was looking for, thank you. I've gone through the help a couple times and didn't notice anything special. I'm probably missing just a minor detail that's been starring me in the face.
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-03-09 07:27
    Hi SiCC, you still have not posted the code you are using, this is as simple as it gets , is this along the lines of what you are using?



    ' {$STAMP BS2}
    ' {$PBASIC 2.5}

    main:
    SEROUT 16,16468,[noparse][[/noparse]"A","B","C"]
    PAUSE 100
    GOTO main

    good for hyperterminal at 9600

    Jeff T.
  • SiCCSiCC Posts: 21
    edited 2007-03-09 07:28
    I dug a little deeper and found a post by PJ Allen from about a year ago. He suggested to make your own serial cable with just transmit, receive and ground. Something to do with the DTR pin putting the stamp in perma reset mode (Probably due to my stamp being pretty old).

    Works great. Thanks for the replies everyone.
Sign In or Register to comment.