B
Bill
I am using VS2005 and VB and the .Net 2 Serial Port class at 9600 8 N 1
I have been using some example code to connect to another device over a
serial port and issue text commands and receive feedback
Everthing works - but the characters sent are getting mangled/dropped and
commands are not being completely read by the device;
eg sending "Get Serial" is echoed as Ge - Invalid Command" The exact
amount of the original command echoed varies randomly. and the response
part - "Invalid Command" is always complete so it is just a sending problem.
All this works just fine every time using Hyperterminal at 9600 8N1
In HT if I send "Get Serial" - it returns " Serial = 123456" and this
always works!
The Serial Port class has lots of "knobs" to tweak various attributes such a
buffer size and timeouts
How should I set it up to emulate Hyperterminal which works perfectly?
Thanks
Bill
I have been using some example code to connect to another device over a
serial port and issue text commands and receive feedback
Everthing works - but the characters sent are getting mangled/dropped and
commands are not being completely read by the device;
eg sending "Get Serial" is echoed as Ge - Invalid Command" The exact
amount of the original command echoed varies randomly. and the response
part - "Invalid Command" is always complete so it is just a sending problem.
All this works just fine every time using Hyperterminal at 9600 8N1
In HT if I send "Get Serial" - it returns " Serial = 123456" and this
always works!
The Serial Port class has lots of "knobs" to tweak various attributes such a
buffer size and timeouts
How should I set it up to emulate Hyperterminal which works perfectly?
Thanks
Bill