I moved your topic to an appropriate forum category @oliur.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
// UNO SIM800l AltSoftSerial basic AT commands test
#include <AltSoftSerial.h>
// UNO SIM800l connection for basic AT command test
// use external power supply for transmit/receive communications
//SIM800L 5V POWER to UNO 5V
//SIM800L GND POWER to UNO GND
//SIM800L VDD to UNO 5V
//SIM800L TXD to UNO RX pin 8
//SIM800L RXD to UNO TX pin 9
//SIM800L UART TTL GND and RST not connected
// Mega SIM800 test - note preferable to use a hardware serial port
//SIM800L TXD to Mega RX pin 48
//SIM800L RXD to Mega TX pin 46
// taking the RST pin to GND for a couple of seconds which will reset the device
// RS232 shield
// RS232 TXD to UNO pin 9
// RS232 RXD to UNO pin 8
// basic AT commands
// AT returns OK
// AT+CGMI returns the manufacturer's name
// AT+CGMM returns the MODEM model number
// AT+CGMR returns details of the software and model revision level
// AT+CGSN returns the MODEM's serial number
AltSoftSerial simSerial;
void setup() {
Serial.begin(115200);
Serial.println("AltSoftSerial test");
//Begin serial communication with Arduino and SIM800L
simSerial.begin(9600); // set to default baudrate
Serial.println("SIM module intialized");
}
void loop() {
if (Serial.available()) {
char command = Serial.read();
//Serial.println(command);
simSerial.print(command);
}
while (simSerial.available()) {
char reponse = simSerial.read();
Serial.print(reponse);
}
}
AT command test
RDY
+CPIN: NOT INSERTED
+CFUN: 1
AT
OK
AT+CGMI
SIMCOM_Ltd
OK
AT+CGMM
SIMCOM_SIM900
OK
at+csq
+CSQ: 11,0
OK
the code of post 7 should work OK with SIM900A mini
how have you connected the UNO to the SIM900A mini?
have you seen the guide GSM-SIM900A-Arduino-Tutorial-Easy-4-Step
for my code i connected like this
sim tx - arduino d2
sim rx - arduino d3
sim vcc - external power supply 5v 2A
common gnd pin for both sim and arduino