tomojitakasu / RTKLIB

2.56k stars 1.62k forks source link

TCP Client/Server Options in RTKLIB #255

Open xiaomianhuxiao opened 7 years ago

xiaomianhuxiao commented 7 years ago

hello, I'm using u-blox C94-M8P RTK-Applikations-Entwicklungsboard(two NEO-M8P-2 modul,1 base+1 rover) for RTK-Navigation in RTKLIB. Because I just want to do this in a small bereich and the baseline is not long. I don't want to use Internet port or NTRIP. So from the Manual of RTKLIB, I noticed that I can use TCP, but I need the TCP Server Address und Port number for configuration of RTKNAV. How can I find them? If you have some other ways without Internet, please also tell me.

Thank you!

DavidKelleySCSC commented 7 years ago

xiaomianhuxiao:

If you need only a "one to one" connection, then use TCP as you suggest. RTKLIB does this, see below. If you need to connect multiple streams and/or devices, you will need a real NTRIP Caster such as the free version of SNIP the simple NTRIP Caster. [full disclosure, I work for that firm]

On the base station side, have RTKLIB (you can use RTKNAVI or STRSVR tools for this) send the data stream as an output (check the box and fill in the details). Select TCP server in the drop down. Enter an IP and port that the other party can see and connect to. On the rover side, do the reverse, i.e the connection type is a TCP Client and the IP:port would match. Note that this connection is a "bent pipe" and does not care what data you send into it (uBlox raw or RTCM or anything else).

[If you need a static IP because your rover is unable to see a local DHCP IP, then there are solution for that issues as well.]

Good luck, David Kelley

On 12/3/2016 7:53 AM, xiaomianhuxiao wrote:

hello, I'm using u-blox C94-M8P RTK-Applikations-Entwicklungsboard(two NEO-M8P-2 modul,1 base+1 rover) for RTK-Navigation in RTKLIB. Because I just want to do this in a small bereich and the baseline is not long. I don't want to use Internet port or NTRIP. So from the Manual of RTKLIB, I noticed that I can use TCP, but I need the TCP Server Address und Port number for configuration of RTKNAV. How can I find them? If you have some other ways without Internet, please also tell me.

Thank you!

xiaomianhuxiao commented 7 years ago

helllo, David, can I just use the IP Address of my computer that connected to my receiver(Base station), but actually the IP Address ist different from the TCP Address, so can I? Thank you!

DavidKelleySCSC commented 7 years ago

xiaomianhuxiao said: can I just use the IP Address of my computer that connected to my receiver(Base station) Yes. I am not sure I understand what is different. The IP in this case is always the base station (the IP of the rover is not relevant). The normal issue that people run into is that the rover is not on the same 'subnet' so it can not see the base. I am moving about today, when I get to a stable spot will set up a screen shot showing how to set it up on whatever dhcp network I find that I am at. As a key test, make sure your rover can PING your base PC to confirm they see each other.

xiaomianhuxiao commented 7 years ago

hello, David, I use STRSVR for the Base(TCP server) and RTKLIB for the Rover (TCP client), and I use the IPV4 DNS server address or IPV4 address from my base PC as the TCP server address. (right???)But they don't have a connection, because the orange blink (means waiting for the connection) doesn't turn into green. Can you help me? Thank you

DavidKelleySCSC commented 7 years ago

What you say seems right to me, perhasp the two machine can not see each other. My prior comment was also a bit confused as well as I had forgotten RTKLIB dims out the caster IP when not needed (but is confusing IMHO because it leaves the last value that was entered displayed (greyed) even when not used).

Here is a screen shot of a working setup I just did. Working from top to bottom... The STRSVR TCP Server options window does not need the IP (as it knows to use the machine's address) but does need a port (here I used 500), but the last one I entered is still visible. The RTKNAVI stream using TCP Client does need the actual IP and the same port. In this case there is no need for any mountPts because only one possible data stream can exist. The final image is the result of running "ipconfig" on this machine to confirm that its IP address is 192.168.2.105 Please make sure the rover can ping the address to you use, in a command line type "PING xx,xx,xx,xx" where the xx part is the other machines IP. If you see "request timed out" then you know the rover can not reach the base.

rtklib_astcp_screenshot

Good luck, David Kelley

xiaomianhuxiao commented 7 years ago

hello, David, I have made a connection between my rover and my base station. Thank you for your help. But I couldn't get a solution like this. 66 1

so I think it maybe the problem of my configuration. I didn't change UBlox to RTCM 3 in STRSVR , because I didn't know how to write a command for the base station in the RTKNAVI. Could you please have a look at my configuration in my Screenshots in the PDF files? The commands are a little big because I stored them directly after configuration in U-Center in TXT files with annotations in the filenames for RTK-Modul. The setup information is hier:

https://www.u-blox.com/sites/default/files/C94-M8P-Appboard-Setup_Presentation_%28UBX-16009772%29.pdf.

Moreover, I found another problem. I used two laptops that both have a wireless connection with the same Internet of my home. After I shut down this connection manually. The TCP connection didn't work. But I want to use them in the environment without Internet, for example, the playground in the University. What can I do to improve this situation.

Thank you !

Base Station_STRSVR_config.pdf Rover_RTKNAVI_config.pdf

xiaomianhuxiao commented 7 years ago

hello,David.

I didn't convert UBlox to RTCM 3 in STRSVR, because I didn't know how to write a command for the base station in the RTKNAVI. 5 If I want to convert,how to write the command for the base station in the RTKNAVI? 7

Thank you!