Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Send ASCII string to serial port via Javascript?

    Hi all,

    I use JScript to create highly-portable applications involving part marking equipment (Dot Peen, industrial ink jets, etc.). This type of equipment is generally drive via ASCII control character strings that are send down a common serial port.

    In the past, I've done this via a link to a DOS .bat file which copies a .txt file to the com port. Does anyone know of a simple JScript method to perform this com port string copy without the use of .bat files?

    Thanks for any ideas.

    GeneA

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Javascript cannot do this
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    aren't you still able to do it via batch files? why do you need to do via the browser anyways?
    *keep it simple (TM)

  • #4
    New to the CF scene
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Browser Tools

    I've come to accept my current *.bat file approach as adequate for now. Thanks for your help in identifying the limits of Javascript.

    As for why I use the browser interface... my users ultimately are production workers, machinists.... normal people rather than PC-savy programming types. I've found that the browser interface is one which they are most comfortable with. Plus, it's easier to email *.htm files rather than executables with *.dll files and the endless questions related to software installation, compatibility, etc.

    Thanks again to all for their help in clarifying what's possible with simple javascript.

    G


  •  

    Posting Permissions

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