Results 1 to 9 of 9

Thread: Generic serial port fails but Hyperterminal works

  1. #1
    Join Date
    Nov 2004
    Location
    Asheville, NC
    Posts
    5

    Default Generic serial port fails but Hyperterminal works

    Hi. First post on this forum. I'm using generic serial port 3.0.18 to connect Girder to a number of serial ports. I use a Digi multiport adapter which gets me up to COM18. I have several home theater components working well this way usign Girder. Recently, I hooked up my DWIN TV3+ projector which accepts simple ASCII commands ("[POFF]" = "power off"), but the Girder serial port won't work. HOWEVER, exactly the SAME configuration of port variables using Hyperterminal works fine. I have tried tweaking everything I can think of, like intracharacter delay, etc. without success. Any ideas? Thanks!!

  2. #2
    Join Date
    Feb 2001
    Location
    Plano, TX, USA
    Posts
    3,055

    Default

    Do you see any information coming from the TV3?

    What is the handshaking setting? (HW/SW/Off)

    Are you using the same cable with Hyperterminal?
    Mark F

  3. #3
    Join Date
    Nov 2004
    Location
    Asheville, NC
    Posts
    5

    Default

    Thanks for the response, Mark. It is so amazing to be able to talk directly to the code's author. As best I can tell, the TV3+ is listen only. No response codes are listed in the manual. Even so, I tried various settings of the Receive dialog in the plugin, to no avail.

    The port settings are 9600,N,8,1 with no handshaking. In fact, the serial calbe is a simple three wire TX,RX,GND connection, and yes, I make no changes in cabling between Girder and Hyperterminal.

    I spoke to tech support at DWIN and they confirm that no additional line terminators are needed, and the device responds simplay to the "]" character on the end of a valid command, such as "[I3]" to "select input 3". And in fact, this is how the successful Hyperterminal interface functions.

    A friend suggested that I hook the wire up to another port and "see" what exactly each program is sending. I'll try that this evening.

    Thanks again for your attention to this problem!

  4. #4
    Join Date
    Nov 2004
    Location
    Asheville, NC
    Posts
    5

    Default

    OK, I connected the cable to another COM port to see what Hyperterminal and the plugin are each sending to the DWIN projector. HT sent the ASCII thru without issue. The serial port plugin sent nothing. Hmmm... so I changed the text, and sure enough the plugin worked. So after some experimentation, here's what happens:

    "POFF" works. "[POFF" works. "POFF]" works. "]POFF[" works. "[POFF]" does NOT work! Sends nothing. So an "[" followed by "]" somehow traps the entire string and sends nothing.

    All the DWIN commands require a "[ ]" combination, so no commands work. Wierd!

    Any ideas? Thanks!

  5. #5
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    the [] are used by girder to send a variable ie.

    [variable]... so that is the problem... Note sure if we have a work around....

  6. #6
    Join Date
    Nov 2004
    Location
    Asheville, NC
    Posts
    5

    Default

    Ouch! Bad luck! OK, well is it possible to load the bracketed commands in string variables, then send the variable? Where can I learn how to manipulate variables in Girder? Thanks!

  7. #7
    Join Date
    Feb 2001
    Location
    Plano, TX, USA
    Posts
    3,055

    Default

    Another possibility is to turn on the "Escape Sequences" in the transmit message definition. Then you can use a slash (/) and the hex code for [. (I think [ is hex 5B so try /5b)

    Example: /5bPOFF]
    Mark F

  8. #8
    Join Date
    Nov 2004
    Location
    Asheville, NC
    Posts
    5

    Default

    Great idea and that works! I REALLY appreciate your help!

  9. #9
    Join Date
    Feb 2001
    Location
    Plano, TX, USA
    Posts
    3,055

    Default

    Cool!

    You and Mike figured out the problem, I'm just glad there was a relatively easy solution.
    Mark F

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •