Xinyuan-LilyGO / T-SIM7600X

126 stars 41 forks source link

modem.getGPS vsat and usat not working #74

Open Joepowles opened 11 months ago

Joepowles commented 11 months ago

using code in All Function example folder. if (modem.getGPS(&lat2, &lon2, &speed2, &alt2, &vsat2, &usat2, &accuracy2, &year2, &month2, &day2, &hour2, &min2, &sec2)) { DBG("Latitude:", String(lat2, 8), "\tLongitude:", String(lon2, 8)); DBG("Speed:", speed2, "\tAltitude:", alt2); DBG("Visible Satellites:", vsat2, "\tUsed Satellites:", usat2); DBG("Accuracy:", accuracy2); DBG("Year:", year2, "\tMonth:", month2, "\tDay:", day2); DBG("Hour:", hour2, "\tMinute:", min2, "\tSecond:", sec2); break; vsat2, usat2 and accuracy2 always return zero.

agilly commented 6 months ago

Can confirm, this happens to me as well. I believe this is an error of the tinyGSM library, because if you look at the string returned by AT+CGNSSINFO in the SIM7600 docs, it does say that fields 2,3,4 are the number of satellites in the three networks. I can see that these numbers are non 0 in my return values, so it must be a parsing error. Perhaps this should be an issue over at tinyGSM image