Link to home
Start Free TrialLog in
Avatar of AlexFM
AlexFM

asked on

Simple COM port access utility needed

I want to write the program which talks with some device using COM port. But first I want to talk with this device using existing program. Requirements:
1) Operating system - Windows NT or later (specifically, I am working with XP Professional)
2) Program allows to connect to COM port, write single bytes to it and read reply showing it's value on the screen.

Basically, I want to type byte value, for example, 10 (numeric, not text) and press command "Send". When device replies, I want to see reply on the screen. Communication protocol is not text-based. Except of this, program should be able to setup COM port: 4800 bps communication speed using 1 startbit,
8 databits, 1 even parity bit and 1 stopbit (lsbit first).

If somebody knows link to such utility, please post it. Thanks.
Avatar of AlexFM
AlexFM

ASKER

Note: please give me link to tested program. I can find such utilities in the WEB, but I am afraid to run them...
ASKER CERTIFIED SOLUTION
Avatar of Mercantilum
Mercantilum
Flag of Japan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlexFM

ASKER

Looks like something that I need, but doesn't work.
I just tried it  - it works nice.
What does not work?
Probably the port was busy with something else?
Avatar of AlexFM

ASKER

I cannot type in it.
Ok, what I did is:

CommPort / Properties
    choose your favorite parameters
    => choose ECHO on if you want to see what you type before it is sent

CommPort / Port open
     => port must be successfully opened (look at bottom / status bar, you'll see Settings... if it is opened)

MSComm / Hex mode
MSComm / Input length (1)

  then Enter FF<RETURN> it is sent ... (you see the TXD led red for a 1/10 second)

This tool is cool ,really, will use it myself :)
Did you try hyperterminal?

Using hyperterminal,you wont be able to connect to COM1 because windows reserves COM1 for the mouse.you can use COM2 with hyperterminal.

>I want to write the program which talks with some device using COM port. >But first I want to talk with this device using existing program.

For the programming part,these could be helpful.

www.beyondlogic.org
www.lvr.com/serport.htm