P
PiotrKolodziej
Hi
Iam trying to send AT commands to the device.
if (serialPort1.IsOpen) serialPort1.Close();
serialPort1.Open();
byte[] buffer = ASCIIEncoding.ASCII.GetBytes("AT");
serialPort1.Write(buffer, 0, buffer.Length);
Thread.Sleep(1000);
serialPort1.ReadLine();
While in hyperterminal everything is ok ( device reposnds with OK ), here
program stops at the readline();
When i close the program and open HT the AT command is still in the buffer.
I Tought that maybe iam not sending Enter key code, but tried saveral times
without effect.
If you have an idea what shoud i correct, i'd be grateful for advice
PK
ps
serialport settings are the same as in HT )
Iam trying to send AT commands to the device.
if (serialPort1.IsOpen) serialPort1.Close();
serialPort1.Open();
byte[] buffer = ASCIIEncoding.ASCII.GetBytes("AT");
serialPort1.Write(buffer, 0, buffer.Length);
Thread.Sleep(1000);
serialPort1.ReadLine();
While in hyperterminal everything is ok ( device reposnds with OK ), here
program stops at the readline();
When i close the program and open HT the AT command is still in the buffer.
I Tought that maybe iam not sending Enter key code, but tried saveral times
without effect.
If you have an idea what shoud i correct, i'd be grateful for advice
PK
ps
