We just connected a couple of different GPS to a CR1000X and the time is not being changed when the difference is bigger than 100ms. Neither it changes when connected to a CR1000.
The PPS level is 3V for these GPS
In the GPS instruction the COM1 port is set as negative
PS: for the CR1000 the instruction to set the baud rate is: SetStatus("baudRateCOM1", 9600) but the CR1000X does not recognize it, I tried with ComC1 and similars, but no way, how can I set the baud rate for a Com port in the code for a CR1000X?
Forgot to say, the readings of the GPS are correct
In order to change the time, the GPS needs to stream the $GPRMC sentence. You can check to see what strings are being outputted by watching the GPS port in the terminal.
thanks for your answer.
yes, I can see the GPRMC sentence in theterminal emulator:
16:47:12.191 R 8,,240419,,,A*6B
replaced actual coordinates with 9999, but it seems to be fine, doesn´t it?
Also, reading the help for the GPS instruction the $GPGGA string must be there as well. Is that one coming though as well?
yes, the $GPGGA string is there too
16:47:13.299 R 7,1.32,444.8,M,49.7,M,,*45
I checked the PPS pulse with the tester and it is OK, so I guess there is something wrong with the code¿?
The instruction is simple, I don´t really know where to keep searching
To set Com port baudrate in the code you need to use SetSetting function.
This info can be found in the help file of CR1000X, the path is Campbellsci\Lib\CRBasicDefFiles\Crbasic1x.chm
Search for setsetting and it will have infos about a lot of things that you can set in the code.
Any other suggestion for the GPS time sync?
I also have this problem. I have one gps16x LVS. but is not changing the datalogger time and I have the two strings as well (gogga and gprmc)
I also configured the gps to push just those two strings and the baudrate about 38.4k.
I'm trying to establish communication between a CR300 (new and last OS update) and a GPS (NMEA 0183 V3.01: GGA, GSA, GSV, RMC, VTG - 9600 bps) with this simple code.:
As you can imagine, it doesn't work (tested with or without a PPS signal), I get NAN for all the frames coming from the GPS.
On the oscilloscope, I have a PPS signal of 3.3 V at 1 Hz as well as the data frame from the GPS (@ 5V). The data frame is approximately 910ms (always less than 1000ms).
The PPS parameter always return approx. 550 ms (that it is transmitted on C2, SE1, ...)), i don't understand.
On the terminal (7: COM RX), I have no data
I don't know what to test anymore. Please, do you have an idea ?