I can find a lot of search results for connecting the SIM800L with arduinos, quite a few specs, some answers (1, 2, 3); but what i can't find is how to connect this GSM module to a Raspberry Pi B+ 1.2.
Am i missing something obvious? I'm tinkering with IoT stuff and a fritzing diagram or something would be amazing.
Edit01
Well i managed to connect it using the Pi's GPIO along with some textual description and a nifty image for Arduino.
SIM800l RPi GPIO
5VIN 2
GND 39
TXD 10
RXD 8`
I used this guide to do some basic testing, but either with python or minicom (on 9600 baud, even with AT+IPR=9600) sometimes it looks as though the serial connection just stalls.
I disabled echo (as per a link i lost) and use a 1s delay before sending a command, but it still kinda stalls.
The breakout is the one in the first link and it has two active LEDs: D6 NET: always blinking D2 RING: always on At regular intervals,they'll both turn off for 1-2s.
An antenna is connected (which largely improved the output of AT+COPS=?
) but the thing can't seem to register.
Periodically I get back
+CFUN: 1
+CPIN:READY
Call Ready
SMS Ready`
when using minicom (sudo minicom -o -b 9600 -D /dev/ttyAMA0
). I assume these are UCs but i don't think they'd interfere.
The /dev/ttyAMA0
line is commented out in inittab
and this Pi has no /boot/cmdline.txt
serial issues.Also, even after AT+CREG=2
with a corresponding OK
, AT+CREG?
The SIM doesn't need a PIN (always READY
).
I'm out of ideas, i suspect it's some misconfiguration.