Shop OBEX P1 Docs P2 Docs Learn Events
Hyperterminal connection to BS2 — Parallax Forums

Hyperterminal connection to BS2

NerdicusMaximusNerdicusMaximus Posts: 11
edited 2007-07-22 18:01 in BASIC Stamp
I know there was a posting in 2004 about this, but for the life of me I can't get it to work.

I would like to send and receive data to the stamp via hyperterminal 5.1

When I open hyperterminal and set it up with 9600 8n1, the stamp goes into permanent reset mode.

I tested this by setting an led to go high on the first line of the program. Works with the debug window, but not with hyperterminal.

Any suggestions?

Thanks.

Comments

  • NewzedNewzed Posts: 2,503
    edited 2007-07-19 17:55
    I am attachign a copy or a Hyper program I use the Stamp.· Load it into you Hyper directory and create a shortcut on the Desktop.· Close the Stamp debug wondow, open TWS and you should be all set.· Use serin/serout 16...... to communicate with Hyper.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
  • pwillardpwillard Posts: 321
    edited 2007-07-19 17:58
    I think I know what's going on. It's the DTR pin misbehaving. Hyperterminal is trying to tell what it assumes to be the *modem* "let's boogie, I'm ready.." Which also happens to tell the stamp "lets boogie... but reset first" over and over and over and over again... :-( This is specific to the DEBUG PINS. I'm not sure what your test setup looks like so I can't offer any specific advice.
  • NerdicusMaximusNerdicusMaximus Posts: 11
    edited 2007-07-19 18:09
    Thanks for the input....

    To Newzed: Your program is still giving me the same issue.

    To pwillard: I think you are on the right track. All the program is doing (for testing) is setting a pin high through to an led. The moment I open my hyperterminal session or Newzed's, the light goes off.

    I am using windows xp, hyperterminal 5.1 and a usb (from PC) to db9 (to stamp) cable.
    I have tried using another computer to make sure nothing fishy is going on with my computer, but I get the same result.
    The hyperterminal program works fine with another device (microhard radio).

    So how do I shut down the dtr pin (pin 4?) in hyperterminal? Is there a command I can send inside the window?

    Thanks for the quick responses.

    Nerdicus Maximus
  • NewzedNewzed Posts: 2,503
    edited 2007-07-19 18:14
    My program is set up to use a DB9 serial cable beween the PC and the Stamp.· If you do not have a serial cable, then you will have to determine what port the USB is using - maybe Comport 8 - and redo your Hyper program.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
  • NerdicusMaximusNerdicusMaximus Posts: 11
    edited 2007-07-19 18:18
    Right on Sid. I am using a usb/db9 cable and I did change the comm port to match my settings but no luck.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-07-19 18:36
    Change Flow Control to None.

    File, Properties --> Configure button

    Post Edited (PJ Allen) : 7/19/2007 6:41:38 PM GMT
  • NerdicusMaximusNerdicusMaximus Posts: 11
    edited 2007-07-19 18:39
    Already there.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-07-19 18:41
    If that doesn't get it, then making a cable with only 2, 3, and 5 (TX, RX, GND)will.
  • NerdicusMaximusNerdicusMaximus Posts: 11
    edited 2007-07-19 18:49
    That's a good idea. I will try that.... what I want eventually is to pass through to a device that has flow control, so I want to block pin 4 from going to the stamp but send it through to the other device. Has anyone seen this pin 4 problem before? There should be a way to set that pin low through software......
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-07-19 19:03
    Sadly, Hyperterminal is a really stupid program where this pin is concerned -- in all states, when it opens the port, it puts DTR high.

    You can either disconnect this signal in the cable (as you seem to be doing) or the BOE has two capacitors which 'decouple' the DTR signal, so you only get a single 'reset' when it first goes high.

    And yes, if you were programming your PC using Visual Basic, you could set "DTREnable = FALSE", and the DTR pin would not go high. Hyperterm is not that smart, even when you turn handshake off in Hyperterm. Been there, done that.
  • pwillardpwillard Posts: 321
    edited 2007-07-20 00:25
    I hate to say this... but Hyperterm is 100% correct to assert DTR when it assumes it's connecting to a modem. That follows RS232 comm protocol the way it should. What's brain dead is the fact that hyperterm is written·as if·the only thing that would ever talk serial is the PC comm port talking to a modem. You *should* have·more flexibilty. There are other free terminal tools and even some for $$$ that have this ability.

    Post Edited (pwillard) : 7/20/2007 12:29:50 AM GMT
  • QuattroRS4QuattroRS4 Posts: 916
    edited 2007-07-22 18:01
    I posted an alternative some time back here ....

    http://forums.parallax.com/showthread.php?p=640960

    Regards,
    QuattroRS4

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'
Sign In or Register to comment.