I’ve found strange problem. When I use temperature sensor with LMiC library everything goes fine, but as soon as I move to GPS sensor (I2C, version GY-GPS6MV2 with U-blox Neo-6m-0-001) data stop coming from GPS.
I add GPS acquire to the beginning of loop() but seems it is already not getting anything after LMiC os_init() function.
I’ve tried LMiC versions 1.50 and 1.51 and both Arduino Mega and Arduino Uno. Still doesn’t work.
It does send ‘Hello World’ by LoRaWAN but GPS doesn’t work =(
If I comment out LMIC code GPS data start coming again:
// LMIC init
// Reset the MAC state. Session and pending data transfers will be discarded.
// Set static session parameters. Instead of dynamically establishing a session
// by joining the network, precomputed session parameters are be provided.
LMIC_setSession (0x1, msbf4_read(DevAddr), (uint8_t*)NwkSkey, (uint8_t*)AppSkey);
// Disable data rate adaptation
// Disable link check validation
// Disable beacon tracking
// Stop listening for downstream data (periodical reception)
// Set data rate and transmit power (note: txpow seems to be ignored by the library)
Looks like the LMiC library conflicts with TinyGPS++ library.
Did someone managed this somehow?
May be some other libraries should be used to make simple GPS tracker?
Thank you in advance for answers.