RTC adjustment via NEO-6m GPS
False date, TinyGps++ returns TRUE! Writing a library associated with the RTC used. RTC adjustment via NEO-6m GPS Everything happens through the library => for DS1307 include for DS3231 include
False date, TinyGps++ returns TRUE!
Writing a library associated with the RTC used.
RTC adjustment via NEO-6m GPS
Everything happens through the library =>
for DS1307 include
for DS3231 include
- Checking the validity of the date (and time is not 00:00)
- Determine social time (summer or winter +1H, +2H) or GMT if defined (1) in .cpp library associated with the DS used
- Time adjustment taking into account the return to zero after 11 p.m.
- Day change detection
- Adjustment of the time in the RTC
- Correction made, valid correctionOk
Adjustment of RTC via GPS NEO-6m by call :: ajust_Time(gps, rtc);
Need valid date info, call :: if (isDateValid(gps)) {do something..}
Mega or Nano Uno test code example file
For those who follow, RGB Clock 6 AFF
Weather Logger
review with GpsAdjustRtc library
Go on topic -:)
// FR
Date fausse, TinyGps++ retourne VRAI !
Rédaction d'une librairie associée à la RTC utilisée.
Ajustement de la RTC via GPS NÉO-6m
Tout se passe en librairie =>
for DS1307 include
for DS3231 include
- Vérification de la validité de la date (et heure n'est pas 00h00)
- Déterminer l'heure sociale (été ou hiver +1H, +2H) ou GMT si défini (1) en .cpp de librairie associée à la DS utilisée
- Ajustement de l'heure avec prise en compte du retour à zéro après 23h
- Détection du changement de jour
- Ajustement de l'heure dans la RTC
- Correction faite, valide correctionOk
Ajustement de la RTC via GPS NÉO-6m par appel :: ajust_Time(gps, rtc);
Besoin d'info date valide, appel :: if (isDateValid(gps)) {faire un truc..}
code test Mega ou Nano Uno dossier exemple
Pour ceux qui suivent ,
RGB Clock 6 AFF
Météo Logger
revue avec librairie GpsAdjustRtc
Allez sur le sujet -:)
Writing a library associated with the RTC used.
RTC adjustment via NEO-6m GPS
Everything happens through the library =>
for DS1307 include
for DS3231 include
- Checking the validity of the date (and time is not 00:00)
- Determine social time (summer or winter +1H, +2H) or GMT if defined (1) in .cpp library associated with the DS used
- Time adjustment taking into account the return to zero after 11 p.m.
- Day change detection
- Adjustment of the time in the RTC
- Correction made, valid correctionOk
Adjustment of RTC via GPS NEO-6m by call :: ajust_Time(gps, rtc);
Need valid date info, call :: if (isDateValid(gps)) {do something..}
Mega or Nano Uno test code example file
For those who follow, RGB Clock 6 AFF
Weather Logger
review with GpsAdjustRtc library
Go on topic -:)
// FR
Date fausse, TinyGps++ retourne VRAI !
Rédaction d'une librairie associée à la RTC utilisée.
Ajustement de la RTC via GPS NÉO-6m
Tout se passe en librairie =>
for DS1307 include
for DS3231 include
- Vérification de la validité de la date (et heure n'est pas 00h00)
- Déterminer l'heure sociale (été ou hiver +1H, +2H) ou GMT si défini (1) en .cpp de librairie associée à la DS utilisée
- Ajustement de l'heure avec prise en compte du retour à zéro après 23h
- Détection du changement de jour
- Ajustement de l'heure dans la RTC
- Correction faite, valide correctionOk
Ajustement de la RTC via GPS NÉO-6m par appel :: ajust_Time(gps, rtc);
Besoin d'info date valide, appel :: if (isDateValid(gps)) {faire un truc..}
code test Mega ou Nano Uno dossier exemple
Pour ceux qui suivent ,
RGB Clock 6 AFF
Météo Logger
revue avec librairie GpsAdjustRtc
Allez sur le sujet -:)
Updates from the author
Arduino47 5 months ago
which use the GNSS of the BK-A7670E if the model is a GSM+GNSS.
Utiliser le GNSS du BK-A7670E pour ajuster une RTC type DS1307 ou DS3231
En prime, vous trouverez ci-joint un exemple d'ajustement de RTC (DS1307 ou DS3231)
qui utilise le GNSS du BK-A7670E si le modèle et un GSM+GNSS.
Arduino47 5 months ago
As the time change is current, both libraries have been reviewed and corrected
In the void get_Ete_Hivers() function in .cpp we use the last Sunday of March (change to summer time)
and October (return to winter time)
To determine the day from the gps data, we use the Zeller algorithm to calculate
the day of the week from the year, month and day.
Function int get_Week_Day() in .cpp
Dans les libraries fournies, le cheangement d'heure été hivers n'est pas fonctionnel.
Comme le changement d'heure est d'actualité, les deux librairies ont été revues et corrigés
Dans la fonction void get_Ete_Hivers() en .cpp on utilise le dernier dimanche de mars (passage à l'heure d'été)
et d'octobre (retour à l'heure d'hiver)
Pour déterminer le jour à partir des données gps, on Utilise l'algorithme de Zeller pour calculer
le jour de la semaine à partir de l'année, du mois et du jour.
Fonction int get_Week_Day() en .cpp