nimaltd / gsm_v5

gsm module library for STM32 LL
GNU General Public License v3.0
232 stars 86 forks source link

sim800l can't connect?? #36

Closed MahmoudMohamedAli closed 2 years ago

MahmoudMohamedAli commented 2 years ago

i use sim800l with stm32f103c8 and sim can't connect to cellular network there is error in if (gsm_command("AT+SAPBR=1,1\r\n", 90000, NULL, 0, 2, "\r\nOK\r\n", "\r\nERROR\r\n") != 1) so pls can u help me.

nimaltd commented 2 years ago

do it step by step

gsm_init(); gsm_power(true); gsm_waitForRegister(30); gsm_gprs_setApName("your ap name"); gsm_gprs_connect();

MahmoudMohamedAli commented 2 years ago

i fellow your instruction step by step!! should i update the firmware??of my sim800l

nimaltd commented 2 years ago

no. it does not need