Big K
September 8th, 2005, 07:25 PM
Hi all,
I have been working on serial communications using vb.net on Com1. I have imported the necessary api's and have the necessary structures in place. Everything is set on the DCB but one setting, RTS_CONTROL_TOGGLE. For some reason no matter what i do i cannot get the RTSflow setting to toggle. I have been using the cmd prompt and setting the port that way using the mode command string...
mode Com1: baud=1200 parity=E data=8 stop=1 to=off xon=off odsr=off octs=on dtr=on rts=tg
But when i try to use this in the BuildCommDCB() string like so...
baud=1200 parity=E data=8 stop=1 to=off xon=off odsr=off octs=on dtr=on rts=tg
when i use anything other than on or off for the rts= it will not succeed. I am running out of ideas and would appreciate any help on the matter. I tried also setting the individual DCB settings, but have not been able to set all settings correctly that way either.
I have been working on serial communications using vb.net on Com1. I have imported the necessary api's and have the necessary structures in place. Everything is set on the DCB but one setting, RTS_CONTROL_TOGGLE. For some reason no matter what i do i cannot get the RTSflow setting to toggle. I have been using the cmd prompt and setting the port that way using the mode command string...
mode Com1: baud=1200 parity=E data=8 stop=1 to=off xon=off odsr=off octs=on dtr=on rts=tg
But when i try to use this in the BuildCommDCB() string like so...
baud=1200 parity=E data=8 stop=1 to=off xon=off odsr=off octs=on dtr=on rts=tg
when i use anything other than on or off for the rts= it will not succeed. I am running out of ideas and would appreciate any help on the matter. I tried also setting the individual DCB settings, but have not been able to set all settings correctly that way either.