Click here to Skip to main content
11,640,445 members (65,802 online)
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 21:33pm
Edited 8-Nov-12 21:59pm
Nelek72K
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 Mika Wendelius 300
1 CPallini 209
2 OriginalGriff 165
3 Sergey Alexandrovich Kryukov 139
4 Afzaal Ahmad Zeeshan 130
0 Mika Wendelius 200
1 OriginalGriff 145
2 CPallini 115
3 jgakenhe 40
4 sasanka sekhar panda 30


Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 9 Nov 2012
Copyright © CodeProject, 1999-2015
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