r/ArduinoProjects • u/Ibaa24 • Jun 02 '24
SIM808 Module (GSM/GPS) with Raspberry Pi 4
Hello friends
I kindly ask for your assistance with my current project. I'm working on an IoT project that involves bus tracking and try to get longitude and latitude coordinates. However, I'm encountering difficulties with the SIM808 (GSM/GPS) module, when using a Raspberry Pi 4. Here are some of the issues I'm facing:
Module Not Responding to AT Commands:
On Raspberry Pi 4, I'm unable to send AT command , when I enter to picocom it doesn't give me possibility to write AT command so I can't send it .
Raspberry Pi 4 Model B Setup:
I have connected the Raspberry Pi and SIM808 module as follows:
Raspberry Pi SIM808
GND (pin 6) —-> GND
Tx (pin8/GPIO 14) —-> Rx
Rx (pin10/GPIO 15) —-> Tx
Power source: A 12V, 1A to the SIM808 module, with GSM and GPS antennas. Also I try to use 12V, 2A power source ( does the voltage and amperage necessary in this case ?! )
I've attempted to start the module by pressing the button for 3 seconds.
Terminal Emulator Issue:
The terminal emulator (picocom) is not accepting keyboard inputs as it used to. Previously, these commands yielded responses:
AT —> “OK” ( I can't receive this response to complete )
SIM Card and LED Status:
It's unclear if the SIM808 module is reading the SIM card. The LED on the module blinks fast every second instead of every three seconds. Additionally, I'm unsure if the SIM card requires prepaid SMS. The SIM card is registered and functional.
I've been troubleshooting for about 3 days now and would greatly appreciate any assistance you can provide. Thank you in advance!
1
u/Sleurhutje Jun 03 '24 edited Jun 03 '24
First remove any PIN from the sim card, this makes it easier to test things.
Also make sure the sim card is a 3.3V or 1.8V type. Older 5V type will not work properly.
And the module is GPRS/2G most countries are ending their 2G network to make room for 5G. Make sure your provider still supports 2G.
Send AT+CPIN?. The response should be READY or a number representing the times you can try to enter a PIN (should not happen when the PIN is disabled). Send AT+CREG? to check if the sim is registered to the network. If the response is +CREG: x,0 (where x doesn't matter and then 0 can also be 3 or 4 if roaming), your sim is not registered to the network. Send a AT+COPS=0,0 or AT+CREG=2. Wait for 10 seconds and repeat the AT+CREG? Keep repeating this. First use can take up to over a minute to register to the network.