Home Page Forums Raspberry Pi Shields Send SMS from GPRS shield

This topic contains 16 replies, has 7 voices, and was last updated by  shopper 1 year ago.

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #1596

    leslieubeda
    Participant

    Start GPRS mudule at boot using Python

    Make sure the module is off

    from terminal:
    1. create a startgprs.py file (touch startgprs.py)
    2. copy the following code on it:

    import RPi.GPIO as GPIO ## Import GPIO Library
    import time ## Import ‘time’ library. Allows us to use ‘sleep’

    GPIO.setmode(GPIO.BOARD) ## Use BOARD pin numbering
    GPIO.setup(22, GPIO.OUT) ## Setup GPIO pin 7 to OUT

    GPIO.output(22, True) ## Turn on GPIO pin 7
    time.sleep(2) ## Wait
    GPIO.output(22, False) ## Switch off GPIO pin 7
    GPIO.cleanup()

    3. makes it executable (chmod +x startgprs.py)

    4. try it! (python startgprs.py). The blue led start to flash

    5. Create auto boot (sudo crontab -e) and the add the end; @reboot python /home/pi/startgprs.py &

    That’s it!

    #1907

    shopper
    Participant

    I also had troubles using the gprs shield on a raspberry pi. if i’ve connected the gprs shield with my pc over usb everything worked as expected.

    it seems like on my shield pin 20 (GND) from the raspberry pi header is connected with pin 24 (VDD_EXT, 2.8V output) of the M66 which results in a short-circuit when the gprs board is connected with the raspberry pi.

    as gorurakif ponted out in post 1418 breaking the connection between pin 20 and the shield solved the problem.

Viewing 2 posts - 16 through 17 (of 17 total)

The topic ‘Send SMS from GPRS shield’ is closed to new replies.