hafizimran18
Member level 4
- Joined
- Aug 10, 2012
- Messages
- 69
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Activity points
- 1,780
hi, i want to check my MikroC code for gsm module,, i want to check whether its working or not ,, i tried this code but my mobile got no message,, can anybody tell me why????
Code:
void main() {
UART1_Init(9600); // Initialize UART module at 9600 bps
UART1_Write_Text("AT+CMGS=");
Delay_ms(1000);
UART1_Write(0x22);
Delay_ms(2000);
UART1_Write_Text("00923455864774"); // my mobile number
Delay_ms(2000);
UART1_Write(0x22);
UART1_Write(0x0D);
Delay_ms(2000);
UART1_Write_Text("Hi!");
UART1_Write(0x0D);
Delay_ms(2000);
UART1_Write(26);
Delay_ms(2000);
UART1_Write(0x0D);
Delay_ms(2000);
}