TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mihcael
NA
1
10.3k
Checking for dropped connection with SerialPort class
Jan 12 2011 11:00 AM
I'm using the SerialPort class in c#/Visual Studio to monitor data coming in from COM port 10. The problem I am having is when the device sending data to port 10 is disconnected or switched off. Using the 'isOpen' method does not work, as it will still return true as the instance of SerialPort still thinks there is a connection.
I've tried looping through SerialPort.portNames, and that doesn't work either. It simply says that all the ports are closed.
How can I test for when the connection is dropped?
Thanks for your help.
Michael
Reply
Answers (
0
)
MS Lifecam API / Webcam Button
TabControl option?