Hi, I've got one of the new OVMS modules with the SIM808 cellular module to put in a friends car and I'm having some trouble making it work. It does get a GPS location, I haven't included that in the transcript below. I'm reasonably sure I'm using the SIM808 firmware instead of the SIM908 firmware. I'm using the SIM card that is working in my older module with SIM908. I see the following on the serial port when I send it the register command: AT+CGNSINF +CGNSINF: 1,0,20160717082302.000,,,,0.00,0.0,0,,,,,,2,0,,,34,, OK AT+CREG?;+CIPSTATUS;+CCLK?;+CSQ +CREG: 1,1 STATE: IP INITIAL +CCLK: "04/01/01,00:07:42+48" +CSQ: 19,0 OK +CMT: "+<my cell phone number>","","16/07/17,20:23:36+48",145,4,0,0,"+<some other cell phone number>",145,13 REGISTER OVMS AT+CMGS="+<my cell phone number>"
Your phone has been registered as the owner. ERROR AT+CREG?;+CIPSTATUS;+CCLK?;+CSQ +CREG: 1,1
STATE: IP INITIAL I went through the setup process using the diag port for feedback instead of the sms responses and switched on the GPRS, which didn't work either: AT+CLPORT="TCP","6867" OK AT+CIPSTART="TCP","api.openvehicles.com","6867" OK CONNECT OK AT+CIPSENDMP-C 0 QRG/M9iLIp+XEVajAB2v8t JIBS2rw2cub6ssu5QY4C7Q== xxxxxx DATA ACCEPT:63 CLOSED AT+CIPCLOSE ERROR Any thoughts? I haven't yet looked communications of my working module to compare. Does anyone have a firmware or tutorial that sends a fixed sms message to test the cellular module?
Hi Tom, your diag log looks normal until the module starts to send something. It even succeeds with the TCP connect, but the connection closes as soon as it sends:
AT+CIPSTART="TCP","api.openvehicles.com","6867" OK
CONNECT OK AT+CIPSENDMP-C 0 QRG/M9iLIp+XEVajAB2v8t JIBS2rw2cub6ssu5QY4C7Q== xxxxxx
DATA ACCEPT:63
CLOSED
Any thoughts? I haven't yet looked communications of my working module to compare. Does anyone have a firmware or tutorial that sends a fixed sms message to test the cellular module?
Are you sure the SIM account has enough SMS & data volume? Does the SIM work normally in a mobile phone? You can use the diag mode to send an SMS manually. Note: the 808 does not echo LF, only CR. Regards Michael -- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
On 22/07/16 18:38, Michael Balzer wrote:
Are you sure the SIM account has enough SMS & data volume? Does the SIM work normally in a mobile phone?
The SIM I tested with normally lives in my older OVMS module. I put it back and it's been working more than a week.
You can use the diag mode to send an SMS manually. Note: the 808 does not echo LF, only CR.
I'll try that out.
On 22/07/16 21:17, Tom Parker wrote:
On 22/07/16 18:38, Michael Balzer wrote:
You can use the diag mode to send an SMS manually. Note: the 808 does not echo LF, only CR.
I'll try that out.
I couldn't make SMS work while interactively typing the AT commands. I did manage to send "null" to my phone a few types even though the body of the message was not the letters n u l l nor empty, but most of the messages failed to send. I tried a different SIM card, one for the Vodafone New Zealand network and this worked fine. The SIM card that can't send text messages is a 2degrees SIM card. I also found why GPRS wasn't working, I had the wrong username for my ovms server account! I after I corrected that username GPRS works on the 2degrees network as well (but SMS still doesn't work). So it would seem the SIM808 isn't fully compatible with the 2degrees network in New Zealand?
If the GPRS settings are not working, and GPRS is enabled, sometimes the errors and repeated retries on GPRS interfere with the SMS message reception. I suggest to try with the GSM/GPRS switch set to GSM only and see if SMS then works. Regards, Mark
On 22 Jul 2016, at 10:03 PM, Tom Parker <tom@carrott.org> wrote:
On 22/07/16 21:17, Tom Parker wrote:
On 22/07/16 18:38, Michael Balzer wrote:
You can use the diag mode to send an SMS manually. Note: the 808 does not echo LF, only CR.
I'll try that out.
I couldn't make SMS work while interactively typing the AT commands. I did manage to send "null" to my phone a few types even though the body of the message was not the letters n u l l nor empty, but most of the messages failed to send.
I tried a different SIM card, one for the Vodafone New Zealand network and this worked fine. The SIM card that can't send text messages is a 2degrees SIM card.
I also found why GPRS wasn't working, I had the wrong username for my ovms server account! I after I corrected that username GPRS works on the 2degrees network as well (but SMS still doesn't work).
So it would seem the SIM808 isn't fully compatible with the 2degrees network in New Zealand? _______________________________________________ OvmsDev mailing list OvmsDev@lists.teslaclub.hk http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
participants (3)
-
Mark Webb-Johnson -
Michael Balzer -
Tom Parker