Click here to Skip to main content
11,718,016 members (82,536 online)
Rate this: bad
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:[^]
Siva Kumar

[edit] clickable link[/edit]
Posted 8-Nov-12 21:33pm
Edited 8-Nov-12 21:59pm

1 solution

Rate this: bad
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.
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 215
1 F-ES Sitecore 210
2 Maciej Los 140
3 Jochen Arndt 120
4 Andy Lanng 115
0 Sergey Alexandrovich Kryukov 1,649
1 OriginalGriff 535
2 Maciej Los 529
3 Richard MacCutchan 440
4 CHill60 415

Advertise | Privacy | Mobile
Web04 | 2.8.150901.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