Select to view content in your preferred language

NTrip - Fails writing data to NmeaDataStream

1960
10
12-13-2022 03:11 PM
JoeHershman
MVP Alum

We are trying to implement an NTrip client directly into our field application so that we have more available information and do not need the users to have a second app running in background that process the data.

I've looked at a lot of sample code including the demo app ExternalNmeaGPS.Desktop 

It all seems pretty straight forward (in a complex sort of way), but basically get the stream from the NTrip source and write it onto the device stream

I am using Runtime 100.16 in an iOS application.  Using the NmeaLocationDataSource.  When using the external application we see RTK Float fix type and I would expect to see the same in our application.  I can see that we are receiving the NTrip source stream, but there seems to be an issue in the writing. 

I get the following error in the output window when running in the debugger

Mobile.AsBuilt.iOS[30962:12345748] ERROR - /Library/Caches/com.apple.xbs/Sources/ExternalAccessory/EAOutputStream.m:-[EAOutputStream write:maxLength:] - 332 failed to write because stream does not have space available

I have searched around on this error and cannot find anything outside of one place that mentions writing to the stream on the main thread (related to a different issue) which did not change anything.

The issue looks to be occurring pretty deep into the Xamarin iOS API and not sure what could be changed on my side (or even within the EAAccessoryStream).

Unfortunately, I have some technical issues connecting the GPS device to Windows and so am not able to really test out the windows solution provided by the ExternalNmeaGPS demo app.

Thoughts?

@dotMorten_esri 

Thanks,
-Joe
0 Kudos
10 Replies
ReneParise
Emerging Contributor

Hi Joe.

We can suggest you continue to use SXbluetoolbox as application to process NTRIP data reception, if you want to check it you can use pocketmax4 software and check the data.

I leave a video link showing how the RTK connection works with SXblueToolbox.


https://vimeo.com/447174493

 

hope this helps

regards

This is "A Platinum with Sxbluetoolbox NTRIP - ESRI Collector RTK" by Geneq INC on Vimeo, the home for high quality videos and the people who love them.
0 Kudos