m.waqas
Junior Member level 1
Hi
i am new to this forum and hope that i will get help from here.
i want to communicate my GSM module sim300DZ with server.
i want to send AT commands serially via microntroller (PIC18F65J15) to GSM module
and establish a TCP/IP connection and send data serially.
please tell me how can i send AT commands
here i tried my self is this ok
void sendATcommand(unsigned char);
main()
.
.
.
.
sendATcommand('A');
sendATcommand('T');
sendATcommand('+');
sendATcommand('C');
sendATcommand('I');
sendATcommand('P');
sendATcommand('S');
sendATcommand('T');
sendATcommand('A');
sendATcommand('R');
sendATcommand('T');
sendATcommand('=');
sendATcommand('"');
sendATcommand('T');
sendATcommand('C');
sendATcommand('P');
sendATcommand('"');
sendATcommand(',');
}
void sendATcommand(unsigned char m)
{
while(PIR1bits.TX2IF==1);
TXREG2=m;
}
i am new to this forum and hope that i will get help from here.
i want to communicate my GSM module sim300DZ with server.
i want to send AT commands serially via microntroller (PIC18F65J15) to GSM module
and establish a TCP/IP connection and send data serially.
please tell me how can i send AT commands
here i tried my self is this ok
void sendATcommand(unsigned char);
main()
.
.
.
.
sendATcommand('A');
sendATcommand('T');
sendATcommand('+');
sendATcommand('C');
sendATcommand('I');
sendATcommand('P');
sendATcommand('S');
sendATcommand('T');
sendATcommand('A');
sendATcommand('R');
sendATcommand('T');
sendATcommand('=');
sendATcommand('"');
sendATcommand('T');
sendATcommand('C');
sendATcommand('P');
sendATcommand('"');
sendATcommand(',');
}
void sendATcommand(unsigned char m)
{
while(PIR1bits.TX2IF==1);
TXREG2=m;
}