Sending AT Commands To GPRS MODEM

T

Tihomir Ignatov

Hi,
You can try to open COM1 and send AT cmd directly to modem.
I'm using a built in modem too and there no problem to open the port!



Regards
Tihomir Ignatov
 
L

Lonifasiko

Be sure what method your use (Write, WriteLine), what you write
(carriage return, new line character). Also could be because of delays
between commands........

Post your code so that maybe we can help you.

Regards.
 
T

tony

hi.

i have wavecom gprs modem, a builtin modem. (Wavecom Q2406).

my question is, i know that i can send AT Command throught serial com,

but when i try this, i dont get any reply from modem.

the question:
i must use a modem driver to "open" it ?
or just openning com1 , and start sending AT COMMAND is enough ?
 
T

tony

thanks, i testes the util you send me

i change the send so, it will send CR after the command,


the test:
when sending "AT" its returns "???"

any ideas ?

===========================
byte[] outputData = new byte[1];

for(int i = 0 ; i < txtTx.Text.Length ; i++)

{

outputData[0] = Convert.ToByte(txtTx.Text);

port.Output = outputData;

}

outputData[0]=13; ///ADD THIS

port.Output = outputData; ///ADD THIS

// clear the data since we sent it

txtTx.Text = "";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top