3G Click -- Not receiveing SMS?!

General discussion on mikroElektronika development boards.
Post Reply
Author
Message
yuxun88
Posts: 28
Joined: 09 Aug 2016 02:30

3G Click -- Not receiveing SMS?!

#1 Post by yuxun88 » 28 Dec 2016 14:12

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

yuxun88
Posts: 28
Joined: 09 Aug 2016 02:30

Re: 3G Click -- Not receiveing SMS?!

#2 Post by yuxun88 » 29 Dec 2016 07:05

Turn out No Carrier! what!?!?!?

yuxun88
Posts: 28
Joined: 09 Aug 2016 02:30

Re: 3G Click -- Not receiveing SMS?!

#3 Post by yuxun88 » 29 Dec 2016 08:41

I tried AT+COPS=0 and it returns +CME ERROR: 111. CME ERROR 111 means PLMN not allowed.

yuxun88
Posts: 28
Joined: 09 Aug 2016 02:30

Re: 3G Click -- Not receiveing SMS?!

#4 Post by yuxun88 » 29 Dec 2016 12:13

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?

yuxun88
Posts: 28
Joined: 09 Aug 2016 02:30

Re: 3G Click -- Not receiveing SMS?!

#5 Post by yuxun88 » 29 Dec 2016 12:31

Try this command
AT+COPS=1,1,"Telstra"
come up with
CME error 32 -- Network not allowed - emergency calls only

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: 3G Click -- Not receiveing SMS?!

#6 Post by Aleksandar.Mitrovic » 29 Dec 2016 18:00

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

yuxun88
Posts: 28
Joined: 09 Aug 2016 02:30

Re: 3G Click -- Not receiveing SMS?!

#7 Post by yuxun88 » 05 Jan 2017 07:39

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
Hi 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

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: 3G Click -- Not receiveing SMS?!

#8 Post by Aleksandar.Mitrovic » 05 Jan 2017 09:22

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

yuxun88
Posts: 28
Joined: 09 Aug 2016 02:30

Re: 3G Click -- Not receiveing SMS?!

#9 Post by yuxun88 » 05 Jan 2017 22:54

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
Hi 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

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: 3G Click -- Not receiveing SMS?!

#10 Post by Aleksandar.Mitrovic » 06 Jan 2017 13:40

Hi Tom,

I'm glad that your hardware is working.

Yes you can use VSYS PIN for that.

Regards,
Aleksandar

yuxun88
Posts: 28
Joined: 09 Aug 2016 02:30

Re: 3G Click -- Not receiveing SMS?!

#11 Post by yuxun88 » 09 Jan 2017 00:25

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.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: 3G Click -- Not receiveing SMS?!

#12 Post by filip » 09 Jan 2017 16:26

Hi,

We will have to check that behavior.

Regards,
Filip.

Post Reply

Return to “Development Boards”