tomojitakasu / RTKLIB

2.5k stars 1.6k forks source link

str2str pass rover coordinates to base station #108

Open gohoho opened 8 years ago

gohoho commented 8 years ago

Hello everyone. My rover with NVC08-RTK can get rtk in rtcm3 format, and my base station use VRS and needs to get rover coordinates. As I understand, str2str doesn't fit, because it seems it can't pass current location to base, only the fixed one, rtkrcv can't pass rtk to rover. So my question is: how could I pass current rover coordinates to base station?

tomojitakasu commented 8 years ago

The relay back of client message via output stream to server via input stream is added in rtklib 2.4.3 b24. Use option -b for STR2STR or Options - Relay Messages for STRSVR.

NearLinHere commented 4 years ago

Hi @tomojitakasu, I'm really want to apply this feature and I'm wondering if there are any documents for introducing how to use the '-b' parameter? Thank you.

Songken commented 4 years ago

ha~i dont know.

---Original--- From: "Yijin Lin"notifications@github.com Date: Mon, Dec 16, 2019 19:24 PM To: "tomojitakasu/RTKLIB"RTKLIB@noreply.github.com; Cc: "Subscribed"subscribed@noreply.github.com; Subject: Re: [tomojitakasu/RTKLIB] str2str pass rover coordinates to base station (#108)

Hi @tomojitakasu, I'm really want to apply this feature and I'm wondering if there are any documents for introducing how to use the '-b' parameter? Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

NearLinHere commented 4 years ago

Hi @Songken, Thank you for replying to me. Since there is no document, would you please give me some hint about how to use it?

Now I'm using str2str to streaming RTCM3 from NTRIP caster to my ublox F9p chip through UART1 port and receive output NMEA message from USB1 port. Here is my command: ./str2str -in ntrip://xxx:xxxx@zzz:ppp/ID#rtcm3 -p lat lon 0 -n 1 -out serial://ttyF9PUART:115200:8:n:1:off &

If I would like to feed NMEA message from USB1, how should the command look like? Thank you.

tomojitakasu commented 4 years ago

Only the online help shows a brief description. Type "str2str -h". Again, the -b option is only supported by 2.4.3 b24 or later. This is intended to be used to relay back receiver's NMEA messages to NTRIP casters. If you connect to F9P via 2 streams. Run another STR2STR to feed messages from the second stream, .

tomojitakasu commented 4 years ago

See: https://github.com/tomojitakasu/RTKLIB/blob/rtklib_2.4.3/app/str2str/str2str.c (L47-)

" usage: str2str [-in stream] [-out stream [-out stream...]] [options]",
...
" -b  str_no        relay back messages from output str to input str [no]",
...
NearLinHere commented 4 years ago

Hi @tomojitakasu, Thank you for pointing out the location. I notice that I need to switch to correct the branch manually after git clone. Now I got the right app.

I'm sorry that I do not quite understand the online instruction. If I can output NMEA from ttyF9PUART which is a UART port and also used to feed RTCM3 data to F9P, could I revise the command as the following format? ./str2str -in ntrip://xxx:xxxx@zzz:ppp/ID#rtcm3 -b 1 -n 1 -out serial://ttyF9PUART:115200:8:n:1:off &

faircm2 commented 2 years ago

What is the value of str_no? In the docu there is no hint of this. So much guessing...

" -b str_no relay back messages from output str to input str [no]",