Click here to Skip to main content
15,860,972 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone,

Today my manager told me about this requirement. There is a need to read the live data from DE-9 (9-Pin Connector) and display it in a form.

I have no idea about this. Does any one have idea about it please it with me. If you have any resources or suitable books please suggest me.

For details about DE-9 check this Wikipedia page: http://en.wikipedia.org/wiki/D-subminiature[^]
Regards,
Siva Kumar

[edit] clickable link[/edit]
Posted
Updated 8-Nov-12 21:59pm
v2

1 solution

Exactly how you do this will depend on what tools you have available, and what programming language you are familiar with.

Basically, a 9-pin D type is a serial communications port - it receives data which gets transferred to the system in bytes, which may be binary numbers or characters.

If you are using a .NET language then look at using the SerialPort class - it includes a DataReceived event[^] which tells you when a byte has arrived at the port. The link includes a simple example.
 
Share this answer
 
Comments
Siva Kumar 12-Nov-12 0:50am    
Thank u griff. I have another doubt. Suppose if i use a USB adapter to convert the 9-pin D type to USB, will I be able to use SerialPort Class?
OriginalGriff 12-Nov-12 3:24am    
Yes - the USB ports normally show up as COM ports.
Siva Kumar 12-Nov-12 4:06am    
Thankyou Griff :)

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