element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum RPi + GSM/3G module + SIM card
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 8 replies
  • Subscribers 664 subscribers
  • Views 1837 views
  • Users 0 members are here
Related

RPi + GSM/3G module + SIM card

Former Member
Former Member over 12 years ago

Hello, everybody!

 

I am new to RaspberryPI, just got mine recently, and all I did was setup Raspbian and browse the web with it.

 

Now I plan on developing a GSM app, to be used along with a various number of applications (imagination is the limit).

However, I am not exactly tech-savvy in the "do it yourself" department, and I need some help.

 

I want to attach a SIM card to RPi.

The objective is to create a general purpose application which should do the following:

1. listen for incoming SMS text messages (which can contain application-specific commands)

2. parse the incoming commands and send some packets (XML/RPC requests) to some server (accessible by IP address in the same LAN, in a VPN or public IP address)

3. reply to sender with a templatable SMS text message.

 

I need to be pointed in the right direction, or any good direction, esecially related to:

1. attaching a SIM card to RaspberryPi.

I surfed the web, and the only solution I found was RPi with an Arduino board on top, and a GSM/3G module on top of that.

Is there a GSM/3G module out there, which can be directly attached to RPi? I prefer a module capable of operating in 850/900/1800/1900MHz and also 3G / WCDMA2100.

I could use not only advice, but also some links to where to buy the pieces from.

 

2. coding the application.

I can manage developing most of the application on my own, but I could use some assistance or tutorials on how to interact with the GSM module.

I don't like the idea of working with an Arduino in the middle, and I couldn't find any tutorials to match my requirements.

 

Any help is most welcome, as I may continue my research baed on your advice/links/tutorials.

 

Also, if somewhere in the great jungle we call internet, you know someone who might need such an application, I intend to make my application available for purchase.

So I am also open to investments, and develop this application under a shared licence agreement which can be discussed privately.

 

Best regards to all !

  • Sign in to reply
  • Cancel
  • shabaz
    shabaz over 12 years ago

    SMS is really dated. An alternative method would be to use a 3G USB stick, and just use IP.

    If you're in an area with no 3G, then perhaps SMS is a better alternative.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to shabaz

    I agree with you, a 3G USB stick is definitely a cheaper solution, but it is not the object of my project.

    The 3G solution (which is actually basic networking) will be integrated anyway, for testing purposes, until the SMS module is complete.

     

    However, you can still add some value to your reply image

    Do you have any idea what hardware should I use for SMS ? Also, can you by any chance point to me any tutorials for SMS receiving/sending ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 12 years ago in reply to Former Member

    I believe most GSM modules just rely on normal AT commands (perhaps an extension). For example, see here which

    explains the commands required to send an SMS for one device.

    Personally to me it just doesn't make sense these days - M2M is increasingly IP for good reason.

    You could try to find a module with a serial interface, and use that since the Raspberry Pi has a serial interface.

    You could check out something like this module (I did not read the datasheet).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to shabaz

    Thank you very much.

     

    Although I was trying to avoid the Arduino, it may prove to be the easiet starting point for me, at least from the learning point of view.

    That Sierra module you shown me seems pretty capable, and it's probably worth those 60 pounds + VAT, since it looks like it does a bunch of useful things.

     

    To give you a hint about why I prefer SMS over IP / 3G wireless, the main reason is, as you partially pointed out, 3G coverage and 3G provider reliability. I could use the GoogleMarket over 3G, for example, but that's not exactly the purpose of my project. Another reason is the easy billing: my app is (hopefully image ) ment to be used by a paying user, and I can't assume he is smart or that has a smartphone. So a contract with a phone company solves the problem of receiving payments for micro-transactions via SMS (although their cut of my profit would be rather big).

     

    Anyway... thanks for the advice, I hope I can put it to good use soon image

    Best regards!

     

    PS: I am still open to suggestions from other users, maybe there are also other solutions to chose from.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 12 years ago in reply to Former Member

    To be honest, even with no 3G, GPRS may be a better option. SMS should be absolute last case (at least for M2M). I suppose it does depend on billing options etc but I'm no expert on that unfortunately :-(

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago

    Most 3g modems can do both gprs and sms.

    They indeed rely on the an extended AT command set.

    You can use an usb stick 3g modem or you can use one with a serial port like the Siemens TC35i

    The Pi is still having issues with usb 2 serial devices. It wouldn't suprise me that a 3g modem appears as such a device to the Pi.

    I am currently testing with a Huawei usb stick, and it's not working stable. The Pi reboots without any trail in the logfiles.

    The TP1 - TP2 voltage is 4.98V, so I assume that's not the problem. I will try a self powered hub to see if it works better with it.

    You can find the Siemens manual with the AT commands on the web.

    External 3g modems like that Siemens usually need an extra 12V supply. An usb 3g can work without it.

    Mine shows up as 3 serial ports and a cd rom device with the windows drivers. Some usb device wait for a command like an eject and only switch from cd rom mode to modem mode afterwards.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    Hmmm...

    I didn't think of sending SMSs using a 3G dongle.

    Good idea, Luc Cool, thanks!

     

    I have 4 or 5 USB 3G sticks laying around (most of them Huawei and ZTE), and also an externally powered USB hub, so I guess I could try one out, especially since my 3G provider gives free SMSs between its subscribers image

     

    Still, I think I'd rather use a Pi-compatible GSM/3G module for its power consumption and stability.

    I don;t really trust these 3G dongles. I used 2 of them with a tablet, and with one of them the temperature of the tablet would rise pretty much after 1-2h, and with the other, the stick would heat up in about 30-45 min. So I don't want to chose this as a final solution just yet.

     

    I am still open to suggestions.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    I just figured out that the Pi was likely rebooting due to rf interference from the Huawei stick to the Pi.

    I placed an usb cable between the Pi and the stick so that I could locate the stick away from the Pi, and things started to work.

    I did solder a polyfuse over the one alrerady on the board. This increases the TP1 - TP2 voltage with 0.1 - 0.2V

    External modems like the Siemens, Wavecom and Telit ones use an external antenna. Their reception will likely be better due to that.

    They usually also sell OEM modules of their product range. Wathever solution you choose, the way to program them is very similar.

    There can be minor differences in the AT command set. Sending sms is pretty easy. Receiving them usually involves polling a number of reception slots to see if they contain a message.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube