eringerli / RpiNtripBase

MIT License
49 stars 12 forks source link

ntrip caster on rpi #2

Closed applegps closed 4 years ago

applegps commented 4 years ago

Hi,

I use RPi3 B+ / Raspbian Buster Lite

I did all installation according to your manual.

RPi has fixed local IP 192.168.1.155

All settings are default: /STALL:gps:gps Port 2101

I use str2str-injectrtcm1008.service

It looks like it is working but I cannot see mountpoints when using 3rd party NTRIP clients. For example I am trying to create Relay Stream at SNIP and when I am trying to download list of mountpionts it says: Faild to retrive mountpoint list. Please retry. When I am adding Relay Stream with other NTRIP caster it works fine so I do not any mistake in SNIP.

I checed it also with Android app NTRIPCheck and it returns me: HTTP/1.0 401 Unauthorized Server: NTRIP NtripCaster 0.1.5/1.0 WWW-Authenticate:Basic realm="/STALL" Content-Type:text/html Connection:close

For sure I entered username and pass according to the settings in ntripcaster.conf

Any idea?

Is mount point visible when uBlox is not connected?

eringerli commented 4 years ago

I think, after skimming the docs for ntripcaster, you should add a sourcetable.dat. There should be a doc somewhere, which explains the format.

applegps commented 4 years ago

No progress. I have created sourcetable.dat in /usr/local/ntripcaster/conf/ and still the same. sourcetable.dat is not even mentioned in ntripcaster.conf so I am not sure if in this version of ntripcaster I have to do anything with sourcetable?

The problem is that it is not a matter of lack of information when entering x.x.x.x:2101 to check data about server. NTRIP clients I use need to fill in: -serwer addres

Normally mount points are downloaded from the server and but in this case I cannot see them. It looks like I need to do something with RPi.

applegps commented 4 years ago

Here are logs from file:

[01/Jan/2020:19:55:07] [0:Main Thread] NtripCaster Version 0.1.5 Starting..
[01/Jan/2020:19:55:07] [0:Main Thread] Using stdout as NtripCaster logging window
[01/Jan/2020:19:55:07] [0:Main Thread] Starting main connection handler...
[01/Jan/2020:19:55:07] [0:Main Thread] Listening on port 2101...
[01/Jan/2020:19:55:07] [0:Main Thread] Using 'localhost' as servername...
[01/Jan/2020:19:55:07] [0:Main Thread] Server limits: 100 clients, 100 clients per source, 40 sources
[01/Jan/2020:19:55:07] [0:Main Thread] Starting Calender Thread...
[01/Jan/2020:19:55:07] [1:Calendar Thread] Bandwidth:0.000000KB/s Sources:0 Clients:0
[01/Jan/2020:19:55:08] [2:Connection Handler] Accepted encoder on mountpoint /STALL from 127.0.0.1. 1 sources connected
[01/Jan/2020:19:55:24] [2:Source Thread] Didn't receive data from source after 16000 microseconds, assuming it died...
[01/Jan/2020:19:55:24] [2:Source Thread] Lost connection to source on mount /STALL, waiting 0 seconds for timeout
[01/Jan/2020:19:55:24] [2:Source Thread] Kicking source 0 [127.0.0.1] [Source died] [encoder], connected for 16 seconds, 0 bytes transfered. 0 sources connected
[01/Jan/2020:19:55:24] [2:Source Thread] Kicking all 0 clients for source 0
[01/Jan/2020:19:56:07] [1:Calendar Thread] Bandwidth:0.000000KB/s Sources:0 Clients:0
[01/Jan/2020:19:56:39] [3:Connection Handler] Kicking unknown 1 [192.168.1.101] [Sourcetable transferred], connected for 0 seconds
[01/Jan/2020:19:56:45] [4:Connection Handler] Kicking unknown 2 [192.168.1.101] [Sourcetable transferred], connected for 0 seconds
[01/Jan/2020:19:56:51] [5:Connection Handler] Kicking unknown 3 [192.168.1.101] [Sourcetable transferred], connected for 0 seconds
[01/Jan/2020:19:56:57] [6:Connection Handler] Kicking unknown 4 [192.168.1.101] [Sourcetable transferred], connected for 0 seconds
[01/Jan/2020:19:57:03] [7:Connection Handler] Kicking unknown 5 [192.168.1.101] [Sourcetable transferred], connected for 0 seconds
[01/Jan/2020:19:57:07] [1:Calendar Thread] Bandwidth:0.000000KB/s Sources:0 Clients:0
[01/Jan/2020:19:57:09] [8:Connection Handler] Kicking unknown 6 [192.168.1.101] [Sourcetable transferred], connected for 0 seconds

192.168.1.101 is computer in the same LAN where I use SNIP trying to download mount points list. Without success.

applegps commented 4 years ago

The problem for sure is with sourcetable.dat file. I cannot solve it yet but it I will. Since it is something with ntripcaster I am closing this issue.

eringerli commented 4 years ago

I updated the base to include an optional sourcetable.dat. You can update to a new version and follow the instructions. A git pull should work (if there are no modifications), otherwise the simplest way is to make a new clone of the repository and do the configuration again (edit the files again, don't copy).