Shop OBEX P1 Docs P2 Docs Learn Events
Using the USB PSC on WinXP through a term program — Parallax Forums

Using the USB PSC on WinXP through a term program

hackman127hackman127 Posts: 34
edited 2006-02-22 17:50 in BASIC Stamp
I have not been able to successfully get anything out of my USB PSC through a terminal program. I downloaded "Bray's" terminal program suggested in another post and set the port to 2400 8N1 (and every combination I could think of) and left handshaking off. I sent the command "!SCVER", "!SCVER?", !SCVER, !SCVER? and many other varients, and I am not getting anything back. Is there some magic trick to talking to this through a terminal program? TIA!

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-02-22 01:23
    Which COM Port was assigned by the USB Driver?· Is that the port you're opening?· Does the PSC software work with it?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • hackman127hackman127 Posts: 34
    edited 2006-02-22 02:08
    WIndows assigned Com4, which is what I am using. The PSC software does work correct with the board.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-02-22 02:52
    Then it has to be a problem with the terminal software.· Are you sure there is an open connection?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • hackman127hackman127 Posts: 34
    edited 2006-02-22 03:02
    Chris,

    The green light on the board flashes whenever I type something in. I guess my main concern is probably what the connection settings are supposed to be. 2400 8N1, 38400 8N2, Any terminal emmulation, CR/CR-LF, Flow Control, etc. That's the only thing that I can think of that I do not have set correct. That and maybe I am not issuing the correct command?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-02-22 03:03
    How are you sending the binary values for certain commands?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • hackman127hackman127 Posts: 34
    edited 2006-02-22 03:11
    Well there may be my problem. I am just issuing plain text commands. Actually, the only command I have tried so far is !SCVER, so I shouldn't have to send any binary data with that, should I? Just a CR following?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-02-22 03:19
    So when you type out !SCVER? and press enter nothing happens?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • hackman127hackman127 Posts: 34
    edited 2006-02-22 03:24
    That is correct. That is what makes me think my connection setting are incorrect.
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-02-22 06:37
    hackman127 -

    Chris is saying: "!SCVER?" <== with a trailing question mark

    You are saying: "!SCVER" <== WITHOUT a trailing question mark

    Which is actually being sent?

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • hackman127hackman127 Posts: 34
    edited 2006-02-22 12:16
    Bruce,

    I have sent both. Here's a quick rundown of the commands that I have sent to no avail. (Please forgive my ignorance, I just started playing around yesterday)

    "!SCVER?"
    "!SCVER"
    "SCVER?"
    "SCVER"
    !SCVER?
    !SCVER
    SCVER?
    SCVER

    When I am connected in the terminal program, what I type is being echoed back to me and the activity light on the board flashes. I am assuming I have my terminal settings wrong, but I do not know what they should be.
  • hackman127hackman127 Posts: 34
    edited 2006-02-22 17:50
    I found it guys, my term program was sending LF instead of CR. Thanks for your help.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Luke

    The perversity of nature is nowhere better demonstrated by the fact that, when
    exposed to the same atmosphere, bread becomes hard while crackers become soft.
Sign In or Register to comment.