Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi! everyone, can Serialport Class emulate like wyse50/60 etc. over serialport? If so how?
Posted

1 solution

No, the SerialPort class cannot emulate a multitude of terminals and protocols.

However, you could use the SerialPort class to implement protocols and write server/client emulators that behave like the above. The more complex the emulation, the more work it will be.

You're going to:

    • Open the serial port

    • Listen in a loop to the data

    • Parse out the incoming messages

    • Display output based on the protocol

    • Send information based on input from the user (and the commands accepted by the protocol



The SerialPort class gives you access to the serial port and the ability to read and write from it. You'll need to do everything else yourself.

Cheers,
-jc
 
Share this answer
 
Comments
teebonaire 17-Jun-10 4:08am    
Thank you for giving the tips on how does serial port work. I didn't know about the looping things.
I'm am able to read from a serial but when it comes to writing a command the reply shows ASCII codes. By the way I set the encoding to UTF-8.
TheyCallMeMrJames 17-Jun-10 10:06am    
No worries, sdrey. If you are running into another issue, please start a new question and post the code you're having trouble with.

Cheers!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900