zmsbu
Posts: 16
Joined: Sat Mar 30, 2019 2:23 pm

sms module for raspberry pi

Wed Oct 02, 2019 1:38 pm

Hi! i want to send sms from my smart phone to a sms module that connected to raspberry pi, but i don't know that sms module, can i use sim800? how can i use it? how to connect it to raspberry pi? and so on...
Please help me!
Thanks.

User avatar
topguy
Posts: 5901
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: sms module for raspberry pi

Wed Oct 02, 2019 4:51 pm

I dont know if there really are something like a "SMS module" but you have gsm/3g/4g modems that can receive and send SMSs.

Yes you can use a SIM800 module.

There are many of these modules in different packaging versions. ( one example: https://www.waveshare.com/sim800c-gsm-gprs-hat.htm )
And the documentation from where you buy it should tell you how to connect it to he Pi. ( example again: https://www.waveshare.com/wiki/SIM800C_GSM/GPRS_HAT )

The normal way of communicating with these modems are via sending "AT" commands over the communication port ( usually serialport ) where you can check if you have received any SMS and then receive the text from them.

zmsbu
Posts: 16
Joined: Sat Mar 30, 2019 2:23 pm

Re: sms module for raspberry pi

Thu Oct 03, 2019 1:25 pm

topguy wrote:
Wed Oct 02, 2019 4:51 pm
I dont know if there really are something like a "SMS module" but you have gsm/3g/4g modems that can receive and send SMSs.

Yes you can use a SIM800 module.

There are many of these modules in different packaging versions. ( one example: https://www.waveshare.com/sim800c-gsm-gprs-hat.htm )
And the documentation from where you buy it should tell you how to connect it to he Pi. ( example again: https://www.waveshare.com/wiki/SIM800C_GSM/GPRS_HAT )

The normal way of communicating with these modems are via sending "AT" commands over the communication port ( usually serialport ) where you can check if you have received any SMS and then receive the text from them.
Ok, thank you very much. one question! Can i use 3g or 4g modem just for send and receive sms on raspberry pi? also maybe i need to use them for internet, can i use them for internet too?

User avatar
topguy
Posts: 5901
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: sms module for raspberry pi

Thu Oct 03, 2019 2:20 pm

- You dont have to enable internet connection for SMS to work.
- You might not be able to to use internet and SMS at the same time. ( you will find 15+ threads on that subject on this forum, it depends on the modem, which drivers it uses etc. etc.. )

zmsbu
Posts: 16
Joined: Sat Mar 30, 2019 2:23 pm

Re: sms module for raspberry pi

Thu Oct 03, 2019 2:27 pm

topguy wrote:
Thu Oct 03, 2019 2:20 pm
- You dont have to enable internet connection for SMS to work.
- You might not be able to to use internet and SMS at the same time. ( you will find 15+ threads on that subject on this forum, it depends on the modem, which drivers it uses etc. etc.. )
ok, got it! now is there python code for receive sms on sim800 that connected to raspberry pi? i searched it but not found anything.

User avatar
topguy
Posts: 5901
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: sms module for raspberry pi

Thu Oct 03, 2019 2:30 pm

You mean like this one ? https://pypi.org/project/pygsmmodule/
( second link if I google "sim800 python" )

zmsbu
Posts: 16
Joined: Sat Mar 30, 2019 2:23 pm

Re: sms module for raspberry pi

Thu Oct 03, 2019 3:36 pm

topguy wrote:
Thu Oct 03, 2019 2:30 pm
You mean like this one ? https://pypi.org/project/pygsmmodule/
( second link if I google "sim800 python" )
Thanks, i needed a link like this :
http://www.python-exemplary.com/index_e ... sm.inc.php
i found it :))

Return to “Other projects”