Sometimes we need to integrate intelligent devices to our .net applications. To do this we have to buy some other 3rd party tools or we have to make our own tools. As I am having a little experience in .net (C#) programming(around 2.5 years) I knew that its not possible to me to do so.(May be some guys even less experience can write, here I am talking about me.) Once in my application I have to integrate the Proximity Sensor to detect the presence of an object infront of a KOISK. So, I decided to go to the COM ports stuff and from there I got the events.
The events like DSR(DataSetReady), CarrierDetect(CD) will be useful.
The proximity sensor is a digi inc,. product which can return two events like On(True) and Off(False). If any object is infront of the sensor the orange LED glows that means the DSR is On(True), So load the application and if nothing is there infront of the sensor, no LED glows. It means that DSR is Off(False). So, load the screen saver.
If you found any problem related this COM port stuff, don't hesitate to mail me.
No comments:
Post a Comment