Hi all.
Am working on application that uses a mobile phone. It communicates with the phone via a com port and controls the phone using standard AT Commands.
It is currently very basic, and has no error checking in the code. It can currently communicate with the phone and send an SMS message / dial numbers. I want to be able to read data back from the serial port to check that it is working correctly.
This command;
provokes a response of 'OK' from the phone when issued via Hyper Terminal. I want to be able to use this as a basic test that the phone is correctly connected.
I do not know how to read data back from the port though.
Whenever I try it, i just get the same data back from it that i initially sent to it.
Can anyone point me in the right direction?
Am working on application that uses a mobile phone. It communicates with the phone via a com port and controls the phone using standard AT Commands.
It is currently very basic, and has no error checking in the code. It can currently communicate with the phone and send an SMS message / dial numbers. I want to be able to read data back from the serial port to check that it is working correctly.
This command;
Code:
serialPort1.Write("AT\r");
provokes a response of 'OK' from the phone when issued via Hyper Terminal. I want to be able to use this as a basic test that the phone is correctly connected.
I do not know how to read data back from the port though.
Whenever I try it, i just get the same data back from it that i initially sent to it.
Can anyone point me in the right direction?