Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Embedded Hardware
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 8-Nov-12 22:33pm
Edited 8-Nov-12 22:59pm
Nelek63.2K
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Siva Kumar at 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 at 12-Nov-12 3:24am
   
Yes - the USB ports normally show up as COM ports.
Siva Kumar at 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)

  Print Answers RSS
0 OriginalGriff 6,045
1 DamithSL 4,611
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 9 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100