Seeed-Studio / GPRS_SIM900

library for GPRS shield with sim900 module.
MIT License
138 stars 96 forks source link

getSignalStrength not working give ever noting back #13

Closed sn2k closed 7 years ago

sn2k commented 7 years ago

Hello the function getSignalStrength not working give ever 0 back... (and yes i have rssi 18-20 when i direct ask the module)

struct WorkStruct
{
    char phone[16];
    char datetime[24];
    char gprsBuffer[64];
    char message[50];
    float temp;
    float hum;
    int oled_modus;
    int signal_level;
} Work;

  bool ok = gsm.getSignalStrength(Work.signal_level);
  Serial.println("QQ"); 
  Serial.println(ok); 
  Serial.println(Work.signal_level); 

Thanks for helping

lanselambor commented 7 years ago

@sn2k Could you try to type "AT+CSQ" manually in Serial Debug mode? See what you'll get. What I got as below,

OK
AT+CSQ

+CSQ: 23,0
sn2k commented 7 years ago

Manuali thats functione.... But i have a big problem the libory needs too many ram 38% is too much, its not stable...

ortegafernando commented 7 years ago

That is why it uses Software Serial and his buffers.