Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

GPS and CR1000X


koxme Apr 24, 2019 07:43 AM

Hi there,

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

Any suggestion?

Thanks

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?


koxme Apr 24, 2019 08:02 AM

Forgot to say, the readings of the GPS are correct


GaryTRoberts Apr 24, 2019 08:16 AM

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.


koxme Apr 24, 2019 08:51 AM

Hi gary,

thanks for your answer.

yes, I can see the GPRMC sentence in theterminal emulator:

$GPRMC,144712.00,A,99999999,N,999999999,W,0.03
16:47:12.191 R 8,,240419,,,A*6B

replaced actual coordinates with 9999, but it seems to be fine, doesn´t it?


GaryTRoberts Apr 24, 2019 09:05 AM

Also, reading the help for the GPS instruction the $GPGGA string must be there as well. Is that one coming though as well?


koxme Apr 25, 2019 12:29 AM

Hi,

Thanks Gary,

yes, the $GPGGA string is there too

$GPGGA,99999.00,4249.89747,N,99999.80750,W,1,0
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

Scan (1,Sec,0,0)

GPS (gps_data(),-ComC1,3600,100,nmea_sentence(2))


Italo Apr 25, 2019 07:48 AM

To set Com port baudrate in the code you need to use SetSetting function.

SetSetting("Baudrate(COMC1)",115200)

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.


koxme Apr 26, 2019 01:15 AM

Thanks, Italo!


koxme May 8, 2019 03:21 AM

Any other suggestion for the GPS time sync?

Thanks

Log in or register to post/reply in the forum.