Hi Robert,
I have finished the project and also in this case I have to give you my comments for the excellent work.
Everything seems to work perfectly except for the GPS, it seems to be unable to connect even though it is outdoors and facing the sky.
Even the DS1307 RTC can't get it to work. I am attaching a couple of screens, logs and how I configured the firmware with my configuration. As always thanks for the support.
Good evening.
I will take a look
In the meantime did you run any of the test programs - there are test programs for the gps and the rtc
try the tests - if they do not work with the tests they will not work with the firmware - generally it comes down to wiring - with the ds1307 you will need the capacitors to filter noise on the 5v rail - the ds1307 will not run off 3.3v
The gps also needs 5v to run
I see in the config file that NTP is not enabled. You need to enable it
When enabled, you need to see to time server in your country
NTP updates only occur about every 10m or you have to wait min of 10 min after startup
for ntp values to appear
Last edit: brownrb 2020-11-30
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you please post the data_per.jsn file from the SPIFFS area - the PDF explains how to download and save it as file,.
I also notice an error in the mySQMPLUSTCPIP-DataLog-291120-180105.csv file. Was this created by the TCPIP Logger or the mySQMPLUSTCPIP application? In the datafile it looks like the RVoltsOut value is duplicated in the NELM column also. The values from that point on do not match the headers. I have had a look at my own data log files and I do not see that happening. I looked at the code in firmware and both exe filesto see if there was something I might have missed but can't find anything that leaps out. Knowing what you used to created the datafile .csv would help me.
Last edit: brownrb 2020-11-30
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Robert,
Thanks for the help you are giving me.
I am attaching the data_per.jsn file as your request.
Regarding the mySQMPLUSTCPIP-DataLog-291120-180105.csv file, I confirm that it was created by the mySQMPLUSTCPIP application, I am attaching a screen of how I set it up to get the logs.
The GPS is connected correctly, all items on the sensor match on the PCB board. I have positioned the antenna directly towards the sky and the red LED continues to flash.
As for RTC and NTP I have reconfigured everything, now the time seems to manage it correctly but I do not get data from the NTP server
Thanks a lot
EDIT:
I found the error, I incorrectly connected the GPS module, I did not notice that the RX on the card must be connected to the TX of the GPS module
Please find attached a test program for NTP.
You will see the results on the Serial Monitor in the Arduino IDE
Example output
TimeNTP Example
Connecting to XXXXX
.........Connected to WiFi network.
send_ntpserver
NTP Server IP: ns1.tdc.akl.telesmart.co.nz
IP = 103.242.68.68
Get NTP data
Check NTP packet received
Waiting for NTP reply
Check NTP packet received
NTP packet rec'd
Seconds since Jan 1 1900=
3815860000
Unix time=1606871200
The UTC date is 02/12/2020
The UTC time is 01:06:40
The UTC day of week is 5
send_ntpserver
NTP Server IP: ns1.tdc.akl.telesmart.co.nz
IP = 103.242.68.68
Get NTP data
Check NTP packet received
Waiting for NTP reply
Check NTP packet received
NTP packet rec'd
Seconds since Jan 1 1900=
3815860010
Unix time=1606871210
The UTC date is 02/12/2020
The UTC time is 01:06:50
The UTC day of week is 5
I have done all the sensor tests, including NTP and everything seems to work, the error I had with the NTP test was because it has a baud of 57600 while the other 115200.
However once the 104 firmware is installed all the sensors work, the only things that seem not to work are NTP and the data transmission on WUnderground.
On the firmware configuration side, however, everything seems correct to me.
Hi Robert,
I have finished the project and also in this case I have to give you my comments for the excellent work.
Everything seems to work perfectly except for the GPS, it seems to be unable to connect even though it is outdoors and facing the sky.
Even the DS1307 RTC can't get it to work. I am attaching a couple of screens, logs and how I configured the firmware with my configuration. As always thanks for the support.
Good evening.
I will take a look
In the meantime did you run any of the test programs - there are test programs for the gps and the rtc
try the tests - if they do not work with the tests they will not work with the firmware - generally it comes down to wiring - with the ds1307 you will need the capacitors to filter noise on the 5v rail - the ds1307 will not run off 3.3v
The gps also needs 5v to run
I see in the config file that NTP is not enabled. You need to enable it
When enabled, you need to see to time server in your country
NTP updates only occur about every 10m or you have to wait min of 10 min after startup
for ntp values to appear
Last edit: brownrb 2020-11-30
Can you please post the data_per.jsn file from the SPIFFS area - the PDF explains how to download and save it as file,.
I also notice an error in the mySQMPLUSTCPIP-DataLog-291120-180105.csv file. Was this created by the TCPIP Logger or the mySQMPLUSTCPIP application? In the datafile it looks like the RVoltsOut value is duplicated in the NELM column also. The values from that point on do not match the headers. I have had a look at my own data log files and I do not see that happening. I looked at the code in firmware and both exe filesto see if there was something I might have missed but can't find anything that leaps out. Knowing what you used to created the datafile .csv would help me.
Last edit: brownrb 2020-11-30
Hi Robert,
Thanks for the help you are giving me.
I am attaching the data_per.jsn file as your request.
Regarding the mySQMPLUSTCPIP-DataLog-291120-180105.csv file, I confirm that it was created by the mySQMPLUSTCPIP application, I am attaching a screen of how I set it up to get the logs.
The GPS is connected correctly, all items on the sensor match on the PCB board. I have positioned the antenna directly towards the sky and the red LED continues to flash.
As for RTC and NTP I have reconfigured everything, now the time seems to manage it correctly but I do not get data from the NTP server
Thanks a lot
EDIT:
I found the error, I incorrectly connected the GPS module, I did not notice that the RX on the card must be connected to the TX of the GPS module
Last edit: Marco Formenton 2020-12-01
Please find attached a test program for NTP.
You will see the results on the Serial Monitor in the Arduino IDE
Example output
TimeNTP Example
Connecting to XXXXX
.........Connected to WiFi network.
send_ntpserver
NTP Server IP: ns1.tdc.akl.telesmart.co.nz
IP = 103.242.68.68
Get NTP data
Check NTP packet received
Waiting for NTP reply
Check NTP packet received
NTP packet rec'd
Seconds since Jan 1 1900=
3815860000
Unix time=1606871200
The UTC date is 02/12/2020
The UTC time is 01:06:40
The UTC day of week is 5
send_ntpserver
NTP Server IP: ns1.tdc.akl.telesmart.co.nz
IP = 103.242.68.68
Get NTP data
Check NTP packet received
Waiting for NTP reply
Check NTP packet received
NTP packet rec'd
Seconds since Jan 1 1900=
3815860010
Unix time=1606871210
The UTC date is 02/12/2020
The UTC time is 01:06:50
The UTC day of week is 5
I've got thiw error trying to load the NTP test
what error?
Please email me at gmail or yahoo - its in the firmware.
I have done all the sensor tests, including NTP and everything seems to work, the error I had with the NTP test was because it has a baud of 57600 while the other 115200.
However once the 104 firmware is installed all the sensors work, the only things that seem not to work are NTP and the data transmission on WUnderground.
On the firmware configuration side, however, everything seems correct to me.
Points to firewall settings in the WiFi router or Accesspoint for your network