Click here to Skip to main content
16,009,057 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: serial port communication Pin
Cedric Moonen1-Oct-06 22:32
Cedric Moonen1-Oct-06 22:32 
GeneralRe: serial port communication Pin
RockyJames1-Oct-06 22:57
RockyJames1-Oct-06 22:57 
GeneralRe: serial port communication Pin
Cedric Moonen1-Oct-06 23:08
Cedric Moonen1-Oct-06 23:08 
GeneralRe: serial port communication Pin
RockyJames1-Oct-06 23:14
RockyJames1-Oct-06 23:14 
GeneralRe: serial port communication Pin
RockyJames2-Oct-06 1:09
RockyJames2-Oct-06 1:09 
AnswerRe: serial port communication Pin
kakan2-Oct-06 0:15
professionalkakan2-Oct-06 0:15 
GeneralRe: serial port communication Pin
RockyJames2-Oct-06 0:29
RockyJames2-Oct-06 0:29 
GeneralRe: serial port communication Pin
kakan2-Oct-06 1:16
professionalkakan2-Oct-06 1:16 
Hello.

The problem with detecting serial devices is that the serial port very often can have a random status when the serial port is unconnected.
I.e. the DSR signal can be in it's "On"-position even when the serial port isn't even connected! (It depends on the hardware).

The only reliable way of detecting if:
1.
There *is* a device conncted.
2.
The device is powered on.

is to catch a transition on one (or more) status lines. An easy way is to ask the device if the PC (Data Terminal) may send data to the DS (Data Set).

If the DS raises it's Clear To Send signal, then the PC(DT) may send data to it.

Check out MSDN for the documentation, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/dcb_str.asp[^]



Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

GeneralRe: serial port communication Pin
RockyJames2-Oct-06 1:10
RockyJames2-Oct-06 1:10 
QuestionCFont to CMenu Pin
Arman S.1-Oct-06 20:44
Arman S.1-Oct-06 20:44 
AnswerRe: CFont to CMenu Pin
Hamid_RT1-Oct-06 21:04
Hamid_RT1-Oct-06 21:04 
QuestionWhere can I found "convert Singular to Plural" library ? Pin
Zyraph1-Oct-06 19:05
Zyraph1-Oct-06 19:05 
AnswerRe: Where can I found "convert Singular to Plural" library ? Pin
Waldermort1-Oct-06 22:00
Waldermort1-Oct-06 22:00 
GeneralRe: Where can I found "convert Singular to Plural" library ? Pin
Zyraph1-Oct-06 23:07
Zyraph1-Oct-06 23:07 
Questionhi Pin
jawors1-Oct-06 17:53
jawors1-Oct-06 17:53 
AnswerRe: hi Pin
charlieg1-Oct-06 18:20
charlieg1-Oct-06 18:20 
AnswerRe: hi Pin
kakan1-Oct-06 20:14
professionalkakan1-Oct-06 20:14 
AnswerRe: hi Pin
Hamid_RT1-Oct-06 21:05
Hamid_RT1-Oct-06 21:05 
QuestionDescription of different shortings Pin
frankis781-Oct-06 11:20
frankis781-Oct-06 11:20 
AnswerRe: Description of different shortings Pin
Christian Graus1-Oct-06 15:18
protectorChristian Graus1-Oct-06 15:18 
GeneralRe: Description of different shortings Pin
David Crow2-Oct-06 3:21
David Crow2-Oct-06 3:21 
GeneralRe: Description of different shortings Pin
frankis782-Oct-06 11:00
frankis782-Oct-06 11:00 
GeneralRe: Description of different shortings Pin
Christian Graus2-Oct-06 11:17
protectorChristian Graus2-Oct-06 11:17 
GeneralRe: Description of different shortings Pin
frankis782-Oct-06 11:24
frankis782-Oct-06 11:24 
GeneralRe: Description of different shortings Pin
Christian Graus2-Oct-06 11:26
protectorChristian Graus2-Oct-06 11:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.