sparkfun / SparkFun_u-blox_GNSS_v3

An Arduino library which allows you to communicate seamlessly with u-blox GNSS modules using the Configuration Interface
Other
54 stars 24 forks source link

RTK Corrections unavailable when using RTK Express #39

Closed divyansh2681 closed 10 months ago

divyansh2681 commented 10 months ago

Subject of the issue

Describe your issue here. If you reference a datasheet please specify which one and in which section (ie, the protocol manual, section 5.1.2). Additionally, screenshots are easy to paste into github.

Your workbench

Steps to reproduce

Tell us how to reproduce this issue. Please post stripped down example code demonstrating your issue.

#include <SparkFun_u-blox_GNSS_v3.h> 
UBX_NAV_STATUS_data_t checkRTKstatus;
Serial.println(checkRTKstatus.fixStat.bits.diffCorr);

Expected behavior

Tell us what should happen Since I have connected the RTK Express to the GPS and powered it on, I should be receiving the RTK Corrections. But when I check the value of diffCorr variable (https://github.com/sparkfun/SparkFun_u-blox_GNSS_v3/blob/05eea9878f1e91575781d86b82642847fccce2cf/src/u-blox_structs.h#L189C9-L189C9), I always get 0.

Actual behavior

Tell us what happens instead The value of diffCorr should be 1 when RTK Corrections are available.

PaulZC commented 10 months ago

Hi Divyansh (@divyansh2681 ),

I have had a quick look at the source code and everything seems OK there. So I think there must be another reason why diffCorr is not changing state.

Please tell us more about how you have connected the RTK Express to the GPS:

Please attach photos here showing the wiring.

Best wishes, Paul

divyansh2681 commented 10 months ago

Hi Divyansh (@divyansh2681 ),

I have had a quick look at the source code and everything seems OK there. So I think there must be another reason why diffCorr is not changing state.

Please tell us more about how you have connected the RTK Express to the GPS:

  • Which GPS are you using? Is it RTK-capable?
  • How are the two connected? Which port on the GPS are you using to receive the corrections?
  • Have you checked your wiring? TX->RX, GND->GND?
  • Have you confirmed that the Express is outputting corrections? Are the internal switches set correctly?
  • Are they both using the same baud rate?
  • Does the GPS port have RTCM-In enabled?

Please attach photos here showing the wiring.

Best wishes, Paul

Thank you for the response, Paul.

Here are the answers to your questions:

image_picker_049A2064-7CB9-4FF7-8CAF-B453A4616F3F-10063-00002E29B1DC028C image_picker_F5C9AA25-7AA0-473E-ABE9-4D99CC17CA5C-10063-00002E29B2CEA68F image_picker_6DFB1652-C1A0-4375-B281-8502E07B1F4B-10063-00002E29B1632B48 image_picker_F88BB332-D5D7-46C8-BBF3-540C8BF890DB-10063-00002E29B24C2578

PaulZC commented 10 months ago

Hi Divyansh (@divyansh2681 ),

I can't see clearly from your first photo, the cable goes out of shot, but it looks like you have the Radio connected to the GPS-RTK USB port using a USB cable? That is not going to work. You need to provide the Radio with power and connect its TX pin to UART1 RX or UART2 RX on the GPS-RTK.

Please see this tutorial: https://learn.sparkfun.com/tutorials/setting-up-a-rover-base-rtk-system#rover-setup

Scroll down to: https://cdn.sparkfun.com/assets/learn_tutorials/1/3/6/2/Radio_attached_to_ZED-F9P.jpg

I am going to close this because this is an issue with your hardware connections, not an issue with this library. If you need more help, please ask a question on our GPS Forum: https://forum.sparkfun.com/viewforum.php?f=116

Best wishes, Paul

divyansh2681 commented 10 months ago

Thank you for your help Paul.