# Ohio CORS connection

**URL:** <https://discourse.agopengps.com/t/ohio-cors-connection/18421>\
**Category:** RTK Base Setup\
**Created:** [25 January 2025 07:11 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421 "2025-01-25T07:11:10Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Small\_OH\_Farmer](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/small_oh_farmer/32/20024_2.png) [@Small\_OH\_Farmer](https://discourse.agopengps.com/u/Small_OH_Farmer)\
**Post date:** [25 January 2025 07:11 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/1 "2025-01-25T07:11:10Z")

</div>

Hello, I am am having some difficulty getting my AgIO connected to Ohio CORS systems. I signed up, received password etc.

Since I could not figure this out, I used Wireshark to look at the traffic between my machine and Ohio’s systems. Playing around a little bit, I notice the authentication packet from AgIO looks like this:

> GET /ODOT\_G\_R\_E\_C\_RTX\_RTCM3 HTTP/1.1  
> User-Agent: NTRIP AgOpenGPSClient/6.4  
> Authorization: Basic \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*==  
> Accept: \*/\*  
> Connection: close

and this never seems to connect properly.

I tried using RTK lib instead and I noticed the packet is a little different:

> GET /ODOT\_G\_R\_E\_C\_RTX\_RTCM3 HTTP/1.0  
> User-Agent: NTRIP RTKLIB/2.4.2  
> Authorization: Basic \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*==

Does the “Connection: close” mean AgIO is trying to close the connection as soon as it opens? I tried both 1.1 and 1.0 protocol in AgIO, so I know that is not the issue.  
Am I missing anything obvious? Does someone have experience with the Ohio CORS system and can confirm plays nice with AgIO?

 ![image](https://discourse.agopengps.com/uploads/default/original/3X/9/7/97588b51c27037eeb3f37d0f005c8395ab6c606c.png)

---

<div class="post-metadata">

**Author:** ![FantasyTeddy](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/f/4da419/32.png) [@FantasyTeddy](https://discourse.agopengps.com/u/FantasyTeddy)\
**Post date:** [25 January 2025 09:46 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/2 "2025-01-25T09:46:14Z")

</div>

I don’t have any experience with this system, but based on your (quite detailed) investigation, I would check the following:

- What is the actual response that you get from the server? (Wireshark should show this I think)
- Does the `Authorization` header match? (Compare the value of AgIO vs. RTK lib)
- The `Accept` header from AgIO does look wrong, it should be `*/*`. Can you confirm that it is only `/`? (If so, what version of AgIO/AgOpenGPS are you running?)
- `Connection: close` is the default for HTTP/1.0 so it should be equivalent to the request from RTK lib

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [25 January 2025 13:27 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/3 "2025-01-25T13:27:32Z")

</div>

Also check the port. In Florida mine is different base on what rtk format you are looking for. If you click for the get source table does it give you a list of mounts?

---

<div class="post-metadata">

**Author:** ![wland](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/w/f9ae1b/32.png) [@wland](https://discourse.agopengps.com/u/wland)\
**Post date:** [25 January 2025 16:58 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/4 "2025-01-25T16:58:03Z")

</div>

Check also the port in my example it is 2201. At the first attempt, I couldn’t see it (2101 vs 2201)

---

<div class="post-metadata">

**Author:** ![Small\_OH\_Farmer](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/small_oh_farmer/32/20024_2.png) [@Small\_OH\_Farmer](https://discourse.agopengps.com/u/Small_OH_Farmer)\
**Post date:** [25 January 2025 17:52 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/5 "2025-01-25T17:52:53Z")

</div>

Thanks for the quick replies. I am using AgIO 6.6.2 version. Just to be thorough, I went ahead and tried SNIP as well. It connects fine and is able to act as a pass through to AgIO on the local machine. So, if all else fails, I think this is a workaround.

> [@FantasyTeddy](#):
>
> What is the actual response that you get from the server

I can only go off what wireshark tells me, because I am not familiar enough with TCP connections.  
All systems receive “ICY 200 OK” in response, but only the RTK lib version has a 7342 byte packet attached. I don’t know how to decode it other than some ascii that says “ADVNULLANTENNA” and “TRIMBLE ALLOY” Maybe this is station identifying info?

> [@FantasyTeddy](#):
>
> Does the `Authorization` header match? (Compare the value of AgIO vs. RTK lib)

yes, they are exactly the same. I removed the data in the original message because it contains my login details.

Here is the same from SNIP (redacted some personal details):

> GET /ODOT\_G\_R\_E\_C\_RTX\_RTCM3 HTTP/1.1  
> Host: nnn.nnn.133.115:2101  
> User-Agent: NTRIP sNTRIP/3.17.00l  
> SNIP-Agent: [00000/wLITE/3.17.00/R003] [/ / /]  
> Accept: \*/\*  
> Authorization: Basic \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*==  
> Ntrip-GGA: $GPGGA,164254.0,xxxx.21082000,N,xxxx.60406000,W,4,10,1.0,0.000,M,0.0,M,\*71

> [@FantasyTeddy](#):
>
> The `Accept` header from AgIO does look wrong, it should be `*/*`

you are correct, it is “Accept: \*/\*” I must have typed it wrong the first time. Edit: it appears the Asterisk is markdown character and it was being excluded

> [@FantasyTeddy](#):
>
> `Connection: close` is the default for HTTP/1.0

Doesn’t this mean the server is to close the connection when it responds? Neither RTKlib or SNIP include this in the connection request.

> [@KentStuff](#):
>
> Also check the port.

The port is 2101 (default) for Ohio’s system. This is set correctly.

> [@KentStuff](#):
>
> does it give you a list of mounts

Yes, I see 7 of them. Ohio seems to use mount points to give different formats. One has \_CMRx at the end

---

<div class="post-metadata">

**Author:** ![Pat](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@Pat](https://discourse.agopengps.com/u/Pat)\
**Post date:** [26 January 2025 04:34 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/6 "2025-01-26T04:34:33Z")

</div>

A long shot but do you use special characters in username or password that wont match in AgIO?  
A long time ago my sister had an Apple device that couldn’t connect to the wifi because it had an 0(zero) in the password.

---

<div class="post-metadata">

**Author:** ![Small\_OH\_Farmer](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/small_oh_farmer/32/20024_2.png) [@Small\_OH\_Farmer](https://discourse.agopengps.com/u/Small_OH_Farmer)\
**Post date:** [26 January 2025 04:40 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/7 "2025-01-26T04:40:30Z")

</div>

nothing crazy, just letters and a couple numbers.

---

<div class="post-metadata">

**Author:** ![FantasyTeddy](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/f/4da419/32.png) [@FantasyTeddy](https://discourse.agopengps.com/u/FantasyTeddy)\
**Post date:** [26 January 2025 07:15 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/8 "2025-01-26T07:15:18Z")

</div>

> [@Small\_OH\_Farmer](#):
>
> > [@FantasyTeddy](#):
> >
> > `Connection: close` is the default for HTTP/1.0
> 
> Doesn’t this mean the server is to close the connection when it responds? Neither RTKlib or SNIP include this in the connection request.

For normal HTTP communication, using `Connection: close` in the request indeed indicates to the server that the connection should be closed. However, it is supposed to do that _after_ it has sent its response.

For NTRIP however, since it uses a custom protocol (not really HTTP if I understand correctly), I am not sure what the protocol dictates regarding this header.

If you can compile AOG yourself, you could try to remove the `Connection: close` part ([SourceCode/AgIO/Source/Forms/NTRIPComm.Designer.cs - Line 400](https://github.com/AgOpenGPS-Official/AgOpenGPS/blob/0027bddb3638ba897c78ad4fe91e34bf95c98808/SourceCode/AgIO/Source/Forms/NTRIPComm.Designer.cs#L400)) and see if this is indeed the culprit.

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [26 January 2025 14:10 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/9 "2025-01-26T14:10:56Z")

</div>

When you click get source table you should get a long list of mount points. Like so.

 ![Screenshot_20250126-080142_Firefox](https://discourse.agopengps.com/uploads/default/original/3X/a/3/a3c1007c0be6d41532caa97eb7452e54d6bba531.jpeg)

This is the list of stations.

What you have for a mount point is the data format.

Clear your mount point and click get source table. Select the one closest to you. You can find the list of stations here.

[https://ortn.dot.state.oh.us/TrimblePivotWeb/Map/SensorMap.aspx](https://ortn.dot.state.oh.us/TrimblePivotWeb/Map/SensorMap.aspx)

---

<div class="post-metadata">

**Author:** ![Small\_OH\_Farmer](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/small_oh_farmer/32/20024_2.png) [@Small\_OH\_Farmer](https://discourse.agopengps.com/u/Small_OH_Farmer)\
**Post date:** [26 January 2025 17:35 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/10 "2025-01-26T17:35:28Z")

</div>

> [@FantasyTeddy](#):
>
> If you can compile AOG yourself,

I will try this, but I will need some time to figure out how to do this. Thanks for the line number, it will save me a lot of time.

---

<div class="post-metadata">

**Author:** ![87yj](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/8/eb8c5e/32.png) [@87yj](https://discourse.agopengps.com/u/87yj)\
**Post date:** [27 January 2025 00:47 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/11 "2025-01-27T00:47:21Z")

</div>

I’ve been using the Ohio CORS network with AgOpen for 5+ years. Will need to download 6.6.2 and try there.

From what you posted up, looks consistent with what I run:  
Mount Point: ODOT\_G\_R\_E\_C\_RTX\_RTCM3  
Port: 2101

I have had issues when I swapped the username and password as it’s set up on the Ohio system backward from what I’m normally used to.

Note: On the position tab, I select “Use GPS fix”. The Ohio network is a Virtual Reference System, so you don’t need to worry about connecting to a specific station. It creates a reference to your location. Not exactly sure how that works.

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [27 January 2025 15:04 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/12 "2025-01-27T15:04:39Z")

</div>

Makes sense, Florida has a similar network system that takes a different port number and your location to give you a virtual station. You have to send your location every few minutes.

---

<div class="post-metadata">

**Author:** ![Small\_OH\_Farmer](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/small_oh_farmer/32/20024_2.png) [@Small\_OH\_Farmer](https://discourse.agopengps.com/u/Small_OH_Farmer)\
**Post date:** [28 January 2025 04:28 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/13 "2025-01-28T04:28:56Z")

</div>

Thank you all for your help. I was doing a in depth analysis of the different versions of the TCP/HTTP coms tonight. I found the issue in the GGA message. AgIO’s original version was this:

```auto
$GPGGA,230009.00,nnnn.211,N,nnnnn.604,W,1,5,1,,M,46.4,M,0,0*ck

```

One that worked was this:

```auto
$GPGGA,230533.00,nnnn.211,N,nnnnn.604,W,1,5,1,80,M,46.4,M,0,0*ck

```

I am running some custom hardware that was incorrectly populating the Altitude in the UDP message which was directly translating to AgIO. Even though I had “Use Manual Fix” selected, my bad data was being used. When I fixed my code to send an 80 altitude, you can see that got populated. Ohio’s system was then happy to send me some fix data.

Does it make sense that AgIO is using the GPS fix altitude when Use Manual Fix is selected? If you all think this might be an error, I can see if I can fix this and submit a bug to the Dev team. Maybe there is a default 0.00 that can be sent to make the systems happy?

Sorry to use your time investigating my mistake!

---

<div class="post-metadata">

**Author:** ![Larsvest](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/l/50afbb/32.png) [@Larsvest](https://discourse.agopengps.com/u/Larsvest)\
**Post date:** [28 January 2025 06:27 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/14 "2025-01-28T06:27:16Z")

</div>

> [@Small\_OH\_Farmer](#):
>
> Maybe there is a default 0.00 that can be sent to make the systems happy?

Maybe selecting manual fix is your problem. I believe it’s mainly used to set SIM to a place close to your home, so when making fields in SIM they can be used in the field ( standard position is at Brian’s place in Canada)

I accidentally entered a wrong position in my Base (just 500 m off correct position) and I could not get a fix)

So maybe cors do not like that position sent to it differ from actual position.  
Could you try and find out if it works with selecting antenna position instead of manual position?

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [28 January 2025 15:10 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/15 "2025-01-28T15:10:57Z")

</div>

I used the new default at 0,0. Florida cords network call me on my cell phone and asked me to change it because it was wreaking the system. I apologized and told them it was at Brian’s house in Canada. They said oh no it is in the Atlantic Ocean outside of Africa. Lol. Do we currently offer elevation as a manual input? I was thinking it does not. Not looking at it right now.

---

<div class="post-metadata">

**Author:** ![Larsvest](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/l/50afbb/32.png) [@Larsvest](https://discourse.agopengps.com/u/Larsvest)\
**Post date:** [28 January 2025 15:24 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/16 "2025-01-28T15:24:15Z")

</div>

> [@KentStuff](#):
>
> the new default at 0,0

Thank you for enlighten me, hadn’t noticed it was changed,😃

---

<div class="post-metadata">

**Author:** ![Small\_OH\_Farmer](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/small_oh_farmer/32/20024_2.png) [@Small\_OH\_Farmer](https://discourse.agopengps.com/u/Small_OH_Farmer)\
**Post date:** [29 January 2025 01:40 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/17 "2025-01-29T01:40:55Z")

</div>

> [@Larsvest](#):
>
> Could you try and find out if it works with selecting antenna position instead of manual position?

Yes, it works this way. After I fixed my parsing code for the GPS input it works in both manual and GPS mode.

> [@KentStuff](#):
>
> Do we currently offer elevation as a manual input?

No, elevation is not one of the input boxes. It seems the Virtual Reference systems care very much about this number as it determines how they calculate the correction data they send. RTK to go or one of the other systems where the mount point correlates directly to a station don’t care about this.

---

<div class="post-metadata">

**Author:** ![Small\_OH\_Farmer](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/small_oh_farmer/32/20024_2.png) [@Small\_OH\_Farmer](https://discourse.agopengps.com/u/Small_OH_Farmer)\
**Post date:** [29 January 2025 02:27 UTC](https://discourse.agopengps.com/t/ohio-cors-connection/18421/18 "2025-01-29T02:27:06Z")

</div>

Opened an issue on the GitHub repo to capture this.

> <https://github.com/AgOpenGPS-Official/AgOpenGPS/issues/616>
>
> While doing some (unsanctioned hardware, i.e. derivatives of existing stuff) dev…elopment, I noticed I was unable to connect to the \[Ohio CORS VRS\](https://www.transportation.ohio.gov/working/engineering/cadd-mapping/survey/cors-rtn) network for NTRIP corrections. The GPS part of my hardware was not working correctly (as I found out later). I reached out on Discourse (https://discourse.agopengps.com/t/ohio-cors-connection/18421) to figure out what I was going wrong. I was able to connect to my caster with other tools but not AgIO, so I (incorrectly) assumed there was an issue with the client built in. My error was based in the assumption that putting the NTRIP client in "Use Manual Fix" mode would ignore any data coming from the GPS receiver. I was searching all of the logs of traffic between my PC and Ohio's system trying to figure out what was causing the issues. I eventually figured out the issue was in the GPGGA message. 
> 
> \### TL;DR
> When in "Use Manual Fix" mode on NTRIP client, the coms between the PC and NTRIP caster do not populate the altitude when it comes in as zero from the antenna or never comes at all (HTTP to NTRIP Caster contains:)
> \`$GPGGA,230009.00,1234.211,N,01234.604,W,1,5,1,,M,46.4,M,0,0\*..\`
> 
> For some casters that use Virtual Reference Stations, this altitude is critical to the computation of corrections. As a result of Altitude not being populated, they do not transmit correction data. 
> 
> With the assistance of \[FantasyTeddy\](https://discourse.agopengps.com/u/FantasyTeddy), I believe I narrowed down the line that is causing my grief. 
> 
> https://github.com/AgOpenGPS-Official/AgOpenGPS/blob/0027bddb3638ba897c78ad4fe91e34bf95c98808/SourceCode/AgIO/Source/Forms/NTRIPComm.Designer.cs#L798
> 
> It might help (me, if no one else), if this was changed to something like:
> \`\`\`C#
> //(may include syntax errors, I am not familiar with C#)
> if (Properties.Settings.Default.setNTRIP\_isGGAManual)
> {
> sbGGA.Append("0.000,");
> }
> else
> {
> sbGGA.Append(altitudeData.ToString("#.###", CultureInfo.InvariantCulture)).Append(',');
> }
> \`\`\`
> (may include syntax errors, I am not familiar with C#)
> 
> I appreciate everyone that put in so much effort to make this tool as cool/useful as it is, so I do not in any way expect this to be urgently addressed. I am happy to furnish any details relevant to the timely closure of this issue. Don't hesitate to ask for clarification if I missed important details.
