Serial device to send inputed data to the pc?

Discussion in 'OT Technology' started by MacandCheese, Sep 3, 2006.

  1. MacandCheese

    MacandCheese Mmm Mmmm Goood ;)

    Joined:
    Oct 9, 2002
    Messages:
    208
    Likes Received:
    0
    Location:
    USA
    Hi all,

    Sorry for the confusing title. Basically what i am looking for is a device (hardware based if possible) that would plug into a pc's serial port and send it data that i input into it. For example, say i want to send into the pc "4657537" through the serial port. I want to be able to type that in and press 'send' (or something along those lines) and have the data sent to the serial port.

    The purpose: I am working on a program that reads inputed data from a specific device (lets name it device A) and i don't have the device A working yet, but still want to be able to work on the programming end of it without device A being 100% functional. I'm tyring to multitask here :)

    Any ideas or help would be much appreiciated! Thanks! :bowdown: :cool:
     
  2. Euclid

    Euclid New Member

    Joined:
    Apr 19, 2004
    Messages:
    8,139
    Likes Received:
    0
    Location:
    Nashville, TN
    Can't you do this with a second PC?

    ECHO "4657537" > COM1

    or something like that?
     
  3. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    What?

    What about a palm device?
     
  4. MAD PUNK inDC

    MAD PUNK inDC Sic Semper Tyrannis

    Joined:
    Mar 16, 2000
    Messages:
    86,393
    Likes Received:
    1
    Location:
    the machine
    The details are overwhelming here. :hsugh:

    why not just use a standard serial terminal program?
     
  5. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    Buy what's called a "null modem cable". Use it to connect your COM1 and COM2 ports together. Use a batch file to send data out through COM2, and tell your program to recieve data through COM1.
     
  6. MacandCheese

    MacandCheese Mmm Mmmm Goood ;)

    Joined:
    Oct 9, 2002
    Messages:
    208
    Likes Received:
    0
    Location:
    USA
    ah man, i did not even think about going form one serial port to the other! :uh: Thanks for that idea :)

    Would this be a suitable batch file to send data from com 1 to com 2:

    Code:
    @echo off
    mode com1: baud=19200 parity=n data=8 stop=1 >nul
    copy /B my-junk-data com2:
    Thanks for the help! :cool:
     
  7. mobbarley

    mobbarley Active Member

    Joined:
    Mar 4, 2005
    Messages:
    9,256
    Likes Received:
    2
    Location:
    Sydney
    didnt think mode works in windows???

    just use hyperterm on com 2, use paste to host from the edit menu.
     

Share This Page