Hi fellows,
I got confused with setting up 3G Click correctly on PIC18-Clicker 2. This it what I do. I am just not receiving any sms.
void GMS_Int(){
clear_GSMbuff();
UART2_Write_Text("AT");
UART2_Write(13);
UART1_Write_Text("AT\r\n");
//print_buff2();
wait_responds("OK");
clear_GSMbuff();
UART2_Write_Text("ATE0");
UART2_Write(0x0D);
UART1_Write_Text("ATE0\r\n");
//print_buff2();
wait_responds("OK");
clear_GSMbuff();
UART2_Write_Text("AT+CMGF=1");
UART2_Write(0x0D);
UART1_Write_Text("AT+CMGF = 1\r\n");
//print_buff2();
wait_responds("OK");
clear_GSMbuff();
UART2_Write_Text("AT+CNMI=1,2,0,0,0");
UART2_Write(0x0D);
UART1_Write_Text("AT+CNMI=1,2,0,0,0\r\n");
//print_buff2();
wait_responds("OK");
clear_GSMbuff();
UART2_Write_Text("AT+CSCS=\"GSM\"");
UART2_Write(0x0D);
UART1_Write_Text("AT+CSCS=GSM\r\n");
//print_buff2();
wait_responds("OK");
clear_GSMbuff();
UART2_Write_Text("AT+CPBS=\"SM\"");
UART2_Write(0x0D);
UART1_Write_Text("AT+CPBS=SM\r\n");
//print_buff2();
wait_responds("OK");
clear_GSMbuff();
UART1_Write_Text("Ready!");
UART1_Write(13);
UART1_Write(10);
}
There are 5 pins we can configure on the 3G Click.
PWRKEY -- to turn on the power. I get it, but in the example why it do this
GSM_PWR = 1;
Delay_ms( 100 );
GSM_PWR = 0;
Delay_ms( 2500 );
GSM_PWR = 1;
Delay_ms( 12500 );
why not just turn it on? what is the theory behind this?
STAT -- What does this do?
R1 -- Ring Indicator. No problem.
CTS -- Clear to send.
RTS -- Request to send.
How does these two work? Do I need to send a high signal to RTS and wait for a high signal from CTS everytime sending a sms?
I only need this to send and receive sms. I used to do it with GSM click, but 2G is suspended in Aus no long ago. My problem I could not get it work. Not receiving any sms, havn't tried sending one.
I figure I am setting the pins wrong. I only put PWRKEY high. Any thoughts?
Cheers,
Tom
3G Click -- Not receiveing SMS?!
Re: 3G Click -- Not receiveing SMS?!
Turn out No Carrier! what!?!?!?
Re: 3G Click -- Not receiveing SMS?!
I tried AT+COPS=0 and it returns +CME ERROR: 111. CME ERROR 111 means PLMN not allowed.
Re: 3G Click -- Not receiveing SMS?!
I put AT+COPS=? and find out there is one available operator
(1,"Telstra Mobile","Telstra","50501",2)
but how do I connect to it?
(1,"Telstra Mobile","Telstra","50501",2)
but how do I connect to it?
Re: 3G Click -- Not receiveing SMS?!
Try this command
AT+COPS=1,1,"Telstra"
come up with
CME error 32 -- Network not allowed - emergency calls only
AT+COPS=1,1,"Telstra"
come up with
CME error 32 -- Network not allowed - emergency calls only
- Aleksandar.Mitrovic
- mikroElektronika team
- Posts: 1697
- Joined: 11 Mar 2015 12:48
Re: 3G Click -- Not receiveing SMS?!
Hi,
I will try to make you some example for the 3G click on Clicker 2 for PIC18FJ.
Until then, I suggest you to try use this example:
https://github.com/MikroElektronika/Click_3G_UG95
Here is explained what each pin represent:
http://dl.btc.pl/kamami_wa/ug95_hd.pdf
Here you will find the list of AT commands:
http://dl.btc.pl/kamami_wa/ug95_atcm.pdf
Kind regards,
Aleksandar
I will try to make you some example for the 3G click on Clicker 2 for PIC18FJ.
Until then, I suggest you to try use this example:
https://github.com/MikroElektronika/Click_3G_UG95
Here is explained what each pin represent:
http://dl.btc.pl/kamami_wa/ug95_hd.pdf
Here you will find the list of AT commands:
http://dl.btc.pl/kamami_wa/ug95_atcm.pdf
Kind regards,
Aleksandar
Re: 3G Click -- Not receiveing SMS?!
Hi Aleksandar,Aleksandar.Mitrovic wrote:Hi,
I will try to make you some example for the 3G click on Clicker 2 for PIC18FJ.
Until then, I suggest you to try use this example:
https://github.com/MikroElektronika/Click_3G_UG95
Here is explained what each pin represent:
http://dl.btc.pl/kamami_wa/ug95_hd.pdf
Here you will find the list of AT commands:
http://dl.btc.pl/kamami_wa/ug95_atcm.pdf
Kind regards,
Aleksandar
Thank you for the reply.
I am using it to receive and send sms. Everything works well now expect the module itself shuts down and resets sometime during receiving or sending process. Do you have any clue about this?
Kind regards,
Tom
- Aleksandar.Mitrovic
- mikroElektronika team
- Posts: 1697
- Joined: 11 Mar 2015 12:48
Re: 3G Click -- Not receiveing SMS?!
Hi Tom,
Did you try to use some additional power on the Clicker board?
Like Battery.
You can send me your project and I will test it on my board.
Kind regards,
Aleksandar
Did you try to use some additional power on the Clicker board?
Like Battery.
You can send me your project and I will test it on my board.
Kind regards,
Aleksandar
Re: 3G Click -- Not receiveing SMS?!
Hi Aleksandar,Aleksandar.Mitrovic wrote:Hi Tom,
Did you try to use some additional power on the Clicker board?
Like Battery.
You can send me your project and I will test it on my board.
Kind regards,
Aleksandar
You are damn right about the power. It fixes the problem by having a battery. I checked the hardware design guide for ug95, it requires sufficient current supply up to 2A at least. The power supply I am using it 5V,1A. To be able to work without a battery attached, what do you reckon? I am thinking to upgrade the power supply to 2.6A or do I need to use vsys pin ?
Best regards,
Tom
- Aleksandar.Mitrovic
- mikroElektronika team
- Posts: 1697
- Joined: 11 Mar 2015 12:48
Re: 3G Click -- Not receiveing SMS?!
Hi Tom,
I'm glad that your hardware is working.
Yes you can use VSYS PIN for that.
Regards,
Aleksandar
I'm glad that your hardware is working.
Yes you can use VSYS PIN for that.
Regards,
Aleksandar
Re: 3G Click -- Not receiveing SMS?!
Just found out Quectel is not as good as Telit regarding sending SMS. You can send a very long text with Telit. For Quectel, if it is more than 160 characters, it is not responding.
Re: 3G Click -- Not receiveing SMS?!
Hi,
We will have to check that behavior.
Regards,
Filip.
We will have to check that behavior.
Regards,
Filip.