I have been trying to get the GSM to receive a SMS. I have been using John Crows GSM Remote Control software.
I only changed the pic to 18F4680 (one I have on my test board) and set it up.
When I run the software,
It only gets as far as waiting … I sent several SMS’s but none were received.
I then tried sending an SMS (using GSM Send Text Message) and it worked fine.
When I put the sim back into a mobile phone all the SMS’s come through.
It seems like it needs an interrupt or something to allow it to receive the SMS’s
Are there any other ports to setup (RTS port C2, CTS port C5)
Any Ideas?
GSM EB066 SMS not received
- JohnCrow
- Valued Contributor
- Posts: 1367
- Joined: Wed Sep 19, 2007 1:21 pm
- Location: Lincolnshire
- Has thanked: 364 times
- Been thanked: 716 times
Re: GSM EB066 SMS not received
Hi
I've not used that pic myself.
I'll have a look when I'm at home what the difference is between that and the one I use, could be a config error as it works fine on both send and receive with my system.
Dont think it will make any difference but I use a Virgin Mobile Simcard.
Only other thing, are you using a pay as you go (prepaid) sim. It almost certainly wont work with a contract simcard as they are encrypted.
I've not used that pic myself.
I'll have a look when I'm at home what the difference is between that and the one I use, could be a config error as it works fine on both send and receive with my system.
Dont think it will make any difference but I use a Virgin Mobile Simcard.
Only other thing, are you using a pay as you go (prepaid) sim. It almost certainly wont work with a contract simcard as they are encrypted.
1 in 10 people understand binary, the other one doesn't !
Re: GSM EB066 SMS not received
Hi John
Thanks for the test program.
I am using a prepaid sim cards (Optus Australia) also tried a Vodafone sim.
The Pic shouldn’t make to much difference, It is a 40 pin with Uart on port c (6,7).
The fact that it sends SMS's indicates to me that the RS232 is working correctly.
I don’t know if I need to add a script to get the EB066 to receive.
I tried phoning the SIM and the EB066 status LED came on (incoming call). I altered the display output to show the Text_Received value on the LCD (vairable from GSM_checkforincoming), and it showed 0 even when an incoming call was active. It should return a 2 if there is a phone call, and 1 for an SMS.
So this indicates to me that the GC 864 v2 module is not communicating with the PIC that there is a call or SMS.
Andrew
Thanks for the test program.
I am using a prepaid sim cards (Optus Australia) also tried a Vodafone sim.
The Pic shouldn’t make to much difference, It is a 40 pin with Uart on port c (6,7).
The fact that it sends SMS's indicates to me that the RS232 is working correctly.
I don’t know if I need to add a script to get the EB066 to receive.
I tried phoning the SIM and the EB066 status LED came on (incoming call). I altered the display output to show the Text_Received value on the LCD (vairable from GSM_checkforincoming), and it showed 0 even when an incoming call was active. It should return a 2 if there is a phone call, and 1 for an SMS.
So this indicates to me that the GC 864 v2 module is not communicating with the PIC that there is a call or SMS.
Andrew
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: GSM EB066 SMS not received
Hello Andrew,
Are you using Flowcode v4.5 as the GSM component was updated slightly for this release to make the incoming bytes a bit more reliable.
Are you using Flowcode v4.5 as the GSM component was updated slightly for this release to make the incoming bytes a bit more reliable.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: GSM EB066 SMS not received
Hi Ben
Yes I am using v4.5.18.74 that is the latest version as far as I know.
I am only using 3 GSM functions so far.
Initalize - pass
CheckNetworkStatus pass
Checkforincoming FAIL
The network is connected ok, then it sits in the loop wating for a incoming. Only returns 0.
Is there an alternate way to Checkforincoming, can I use AT commands like in your test software for sending SMS.
Do you have test software for receiving SMS/Phone calls using RS232 and AT commands?
Regards
Andrew
Yes I am using v4.5.18.74 that is the latest version as far as I know.
I am only using 3 GSM functions so far.
Initalize - pass
CheckNetworkStatus pass
Checkforincoming FAIL
The network is connected ok, then it sits in the loop wating for a incoming. Only returns 0.
Is there an alternate way to Checkforincoming, can I use AT commands like in your test software for sending SMS.
Do you have test software for receiving SMS/Phone calls using RS232 and AT commands?
Regards
Andrew
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: GSM EB066 SMS not received
Hello Andrew,
Yes you can use the RS232 component. I have attached a link to the AT command datasheet to try and help you get up and running.
http://www.telit.com/module/infopool/do ... php?id=542
Looking at the C code created by the GSM component macro may help you to understand what you need to be looking for when a incoming text is received.
I also think if there are any messages stored on the SIM then this may stop new messages from being reported to the microcontroller but I could be wrong on this one. I seem to remember there was a reason why we added the delete all messages command into the GSM component as a private macro.
Let me know how you get on and if you make any progress.
Yes you can use the RS232 component. I have attached a link to the AT command datasheet to try and help you get up and running.
http://www.telit.com/module/infopool/do ... php?id=542
Looking at the C code created by the GSM component macro may help you to understand what you need to be looking for when a incoming text is received.
I also think if there are any messages stored on the SIM then this may stop new messages from being reported to the microcontroller but I could be wrong on this one. I seem to remember there was a reason why we added the delete all messages command into the GSM component as a private macro.
Let me know how you get on and if you make any progress.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: GSM EB066 SMS not received
Hi
I made some progress it will now show a 2 on the LCD when there is an incoming call. So the Interrupts must be working.
But It still won’t bring up a 1 when I send an SMS.
LCD line 2 shows 0 = no incoming, 1 =SMS (elusive) , 2= Phone RING
Can you please take a look, I have attached the test file (I removed my number), the hardware is V3 development board with the EB066 connected to port C and I am using a 18F4680 pic. I talked to the local Telit dealer, he told me to try the following initialization settings:
AT#SMSMODE=1
AT#REGMODE=1
AT+CNMI=2,2,0,0,0
I tried them but it still wouldn’t work. He also mentioned that if you changed from GC864 quad to the GC864 quad V2, that it would require different settings, Did the EB066 always use the V2?
Any ideas as I am a bit stuck.
Andrew
I made some progress it will now show a 2 on the LCD when there is an incoming call. So the Interrupts must be working.
But It still won’t bring up a 1 when I send an SMS.
LCD line 2 shows 0 = no incoming, 1 =SMS (elusive) , 2= Phone RING
Can you please take a look, I have attached the test file (I removed my number), the hardware is V3 development board with the EB066 connected to port C and I am using a 18F4680 pic. I talked to the local Telit dealer, he told me to try the following initialization settings:
AT#SMSMODE=1
AT#REGMODE=1
AT+CNMI=2,2,0,0,0
I tried them but it still wouldn’t work. He also mentioned that if you changed from GC864 quad to the GC864 quad V2, that it would require different settings, Did the EB066 always use the V2?
Any ideas as I am a bit stuck.
Andrew
Re: GSM EB066 SMS not received
Hi Ben
I have resolved the issue. I went back to basics and setup the EB066 communication using RS232 so that it showed all the commands and reply’s on the screen.
What I found is that the GSM module takes several seconds to start up.
If you send the initialization commands before it has fully started, the reply from the GSM shows an ERROR 310.
To overcome this I put a 5 second start up delay before the initialize GSM. I then added the delay to the GSM Remote control test software and it worked straight away.
Solution- Use the return value (0=ok, 255=no reply, 254=Command not accepted) of the initialize to report an error and or loop back and try initialize again if there is a problem.
Regards
Andrew
I have resolved the issue. I went back to basics and setup the EB066 communication using RS232 so that it showed all the commands and reply’s on the screen.
What I found is that the GSM module takes several seconds to start up.
If you send the initialization commands before it has fully started, the reply from the GSM shows an ERROR 310.
To overcome this I put a 5 second start up delay before the initialize GSM. I then added the delay to the GSM Remote control test software and it worked straight away.
Solution- Use the return value (0=ok, 255=no reply, 254=Command not accepted) of the initialize to report an error and or loop back and try initialize again if there is a problem.
Regards
Andrew