Stefal / rtkbase

Your own GNSS base station for RTK localization with a Web GUI
GNU Affero General Public License v3.0
467 stars 113 forks source link

str2str_tcp in a bad state #333

Open Stefal opened 10 months ago

Stefal commented 10 months ago

Describe the bug Sometimes, the main service str2str_tcp is not sending data. We can see that

To Reproduce Difficult to reproduce. It occurs only from time to time after a reboot or a startup.

Expected behavior A clear and concise description of what you expected to happen.

Software/Hardware (please complete the following information):

Additional context Could it be related to RTKLib 2.4.3 b34g?

Stefal commented 10 months ago

Example when str2str_tcp doesn't get data from the F9P :

-- Boot 69d85fd8d47e4bfe9758dd0ad184eb7c --
Nov 16 13:58:19 basegnss systemd[1]: Starting RTKBase Tcp...
Nov 16 13:58:19 basegnss systemd[1]: Started RTKBase Tcp.
Nov 16 13:58:19 basegnss run_cast.sh[592]: stream server start
Nov 16 13:59:20 basegnss systemd-journald[500]: Suppressed 12 messages from str2str_tcp.service
Nov 16 13:59:20 basegnss run_cast.sh[592]: 2023/11/16 13:59:38 [CC---]          0 B       0 bps (0) /dev/ttyS1 (1) 2 clients
Nov 16 14:01:31 basegnss systemd-journald[500]: Suppressed 11 messages from str2str_tcp.service
Nov 16 14:01:31 basegnss run_cast.sh[592]: 2023/11/16 14:01:50 [CC---]          0 B       0 bps (0) /dev/ttyS1 (1) 2 clients
Nov 16 14:02:31 basegnss systemd-journald[500]: Suppressed 11 messages from str2str_tcp.service

str2str_tcp.log file is empty

str2str_ntrip_A.log :

1     0.129: gentcp: gethostbyname error addr=caster.centipede.fr err=11
2    10.024: waittcpcli: inactive timeout sock=4
2    30.028: waittcpcli: inactive timeout sock=4
2    50.040: waittcpcli: inactive timeout sock=4
2    70.052: waittcpcli: inactive timeout sock=4

str2str_file.log :

2    10.016: waittcpcli: inactive timeout sock=6
2    30.033: waittcpcli: inactive timeout sock=6
2    50.044: waittcpcli: inactive timeout sock=6
2    70.058: waittcpcli: inactive timeout sock=6
2    90.065: waittcpcli: inactive timeout sock=6
2   110.079: waittcpcli: inactive timeout sock=6
2   130.087: waittcpcli: inactive timeout sock=6

Does str2str_tcp sometime starts too early ?

bitfieldfarm commented 8 months ago

I have issues with this too, as described here: https://discourse.agopengps.com/t/rtkbase-no-signal-after-beeing-down/15041

Stefal commented 8 months ago

Hi @bitfieldfarm I've read the thread on the agopengps forum. One thing is strange : the very low throughput on str2str_tcp.

Your base: janv. 04 07:55:46 basegnss run_cast.sh[2771]: 2024/01/04 06:56:04 [CW---] 10910068 B 1564 bps Mine janv. 09 09:20:52 basegnss run_cast.sh[559]: 2024/01/09 08:21:11 [CC---] -1645917788 B 37178 bps

1564bps vs 37178bps

There is something wrong on the F9P. You can try this :

If you're running the latest F9P firmware, you can connect the F9P to U-center, (network connection tcp://your_base_ip:5015) and take a look at the spectrum : https://github.com/Stefal/rtkbase/issues/280 (view->messages->ubx->mon->span)

bitfieldfarm commented 8 months ago

Hi Ok. I've not disconnected yet. Will do later on. I have no idea what firmware I'm running. But it's bought autumn 2023. Everything worked out of the "box".

I'm new to U-Center. I made the connection to tcp:ip_addr:5015

image

bitfieldfarm commented 8 months ago

After disconnect power and antenna a wile. I get the same spectrum after. And the same after detect and reconfigure.

Guess I'd better get on the roof an check the stuff there.

Stefal commented 8 months ago

Your PGA value is very high, I think you have a hardware problem (antenna, cable, or F9P).