Dear all,
I looked at the forum, found an old thread that never was answered, so I start this new one.
I have managed to get sensor readings from the other sensors, but not the GNSS module. I do not know whether the problem is the script (see below) or the module itself. I have put the module under open sky for half an hour. My cheap smartphone had a fix in seconds, because there were plenty of satellites from all systems with good signal strength (using GPS Test app to check).
Does the script look okay, and is thus perhaps the GNSS module not working?
Is there a way (method call) to check how many satellites the module is “seeing”?
I searched the net using the module’s specific name but couldn’t find anything. Thanks a lot!
Frank.
PS: I am a German native speaker, so you can answer in German if you prefer.
PPS: The short script:
#include “SenseBoxMCU.h”
HDC1080 hdc;
float temp;
GPS gps;
float lat; // Geografische Breite
float lon; // Geografische Länge
void setup() {
// put your setup code here, to run once:
hdc.begin();
gps.begin();
}
void loop() {
// put your main code here, to run repeatedly:
lat = gps.getLatitude();
lon = gps.getLongitude();
temp = hdc.getTemperature();
Serial.println(temp);
Serial.println(lon);
Serial.println(lat);
delay(1000);
}