Author Topic: Raspberry Pi with SIM900 GSM Module  (Read 1559 times)

0 Members and 1 Guest are viewing this topic.

Offline Kryptonite

  • /dev/null
  • *
  • Posts: 16
  • Cookies: 0
    • View Profile
Raspberry Pi with SIM900 GSM Module
« on: April 14, 2014, 04:13:10 pm »
Hi guys

My latest project has me working with a RPi which needs GSM access to upload data from a remote location to a database. I have stumbled upon a few issues and I was hoping somebody may be able to provide insight.

- I have integrated the RPi with the GSM module. Using a serial comm medium with my computer and Hercules, I test the module with AT, where a reply of OK is received, showing cooperation. However, when trying to send an SMS, i receive the following error:
                      CME error: 765

I have searched the net for the source of this error, and have found nothing helpful.
I'm using AT+CSMP=17,167,0,16 and AT+CMGS="+27825577469"

Phoning my cellphone also did not work. I used the ATD function for that


- After confirming that the GSM definitely works, I need to send data to a database which I've created. I know in theory how this works, but I do not know how to actually implement it.

Thank you for your time, your help is much appreciated

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: Raspberry Pi with SIM900 GSM Module
« Reply #1 on: April 14, 2014, 04:14:54 pm »
~Factionwars

Offline Kryptonite

  • /dev/null
  • *
  • Posts: 16
  • Cookies: 0
    • View Profile
Re: Raspberry Pi with SIM900 GSM Module
« Reply #2 on: April 14, 2014, 04:19:28 pm »
The error described in the manual says its an "Invalid input value". I'm not sure what to make of that. I tested the sim card to make sure it was in order from my phone, and it does work fine

EDIT: Actually, the manual only specifies a CMS error with that number, and I'm getting a CME error
« Last Edit: April 14, 2014, 04:20:56 pm by Kryptonite »

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Raspberry Pi with SIM900 GSM Module
« Reply #3 on: April 14, 2014, 05:35:41 pm »
You can use this lib and even see the source invalved  to see how they did it. Something this new isn't going to have tuts and skiddy shit provided, you need the code and see how it works.

http://www.cooking-hacks.com/documentation/tutorials/raspberry-pi-to-arduino-shields-connection-bridge#step4

Link provided has what you need, dig into the code and get what you need, else GTFO. We don't spoon feed, and this is a prime example. Figure out what they are doing, and learn, or wait a few months/years for a tutorial that you might understand.

Figure out what level your on neewb. Learn or GTFO.
>>>import this
-----------------------------

Offline Kryptonite

  • /dev/null
  • *
  • Posts: 16
  • Cookies: 0
    • View Profile
Re: Raspberry Pi with SIM900 GSM Module
« Reply #4 on: April 15, 2014, 12:06:14 am »
Hi guys I'm sorry to bump this thread but I found a solution to my problem.

The error code I had still didn't exist wherever I searched, but my problem was solved after forcing the sms-encoding to "GSM" as suggested in this thread: http://stackoverflow.com/questions/21522794/atcmgs-returns-error/23071095#23071095

So the code used was:

AT+CSCS="GSM"