Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection failed with radiosondy and sondehub #483

Closed
Cofen86 opened this issue Dec 6, 2024 · 20 comments
Closed

Connection failed with radiosondy and sondehub #483

Cofen86 opened this issue Dec 6, 2024 · 20 comments

Comments

@Cofen86
Copy link

Cofen86 commented Dec 6, 2024

Good evening, I notice that with this latest version (dev20241002-C3) I am having problems with the connection to radiosondy and sondehub as per the attached screen.
immagine
The configured parameters are identical to those configured in dev1.
Does this happen to anyone else?
Thank you
IZ2MHJ

@Braccato
Copy link

Braccato commented Dec 7, 2024

Yes, it keeps disconnecting for me too, I don't understand what it is

@ckuethe
Copy link
Contributor

ckuethe commented Dec 8, 2024

I think, maybe, you can only have 1 connection at a time from a given source IP+Callsign. I was seeing the same thing; after removing the APRS2 host (just leave it blank), my connection has gone from flapping every 5 seconds to being stable for 7 minutes an hour and counting.

@dl9rdz
Copy link
Owner

dl9rdz commented Dec 8, 2024

Yes, with a single SSID you can have only one connection.

As soon as you log in to an aprs host with a second device, the first connection will be dropped. The usual solution is to append different SSIDs to the callsign (like DL9RDZ-1, DL9RDZ-2, etc.). But that is useful just if you have more than one device.

There is no point in connecting to radiosondy.info twice. Removing the second host should remove your problem.

@Braccato
Copy link

Braccato commented Dec 9, 2024

Hi, even if I remove the host2 string it does not connect to the network, is it possible to have the entire complete configuration?
if I install the firmware 20240521 instead it works perfectly.

@dl9rdz
Copy link
Owner

dl9rdz commented Dec 9, 2024

Ok, I see. Do you have IPv6 on your network?

There is one known issue in at least one tasmoto-espressif version (espressif/arduino-esp32#8221) related to that. Older version of my software use older espressif version without IPv6 support, the current version uses tasmoto-espressif release 2024.08.10

@Braccato
Copy link

Braccato commented Dec 9, 2024

Yes i have IPV6,How can I solve it?

@ckuethe
Copy link
Contributor

ckuethe commented Dec 9, 2024

Might I suggest updating Data-feed-configuration to indicate that

  • you should not have duplicate APRS-IS destinations (eg. both radiosondy.info ports), and
  • you should (must?) use different SSIDs for each of your devices reporting to APRS-IS

@dl9rdz
Copy link
Owner

dl9rdz commented Dec 9, 2024

Yes, done. I will also update the validation javascript code so you get a warning if you put the same server in both fields.

@dl9rdz
Copy link
Owner

dl9rdz commented Dec 10, 2024

Please test with devel20241209. No big changes, but some debug info on DNS added.

Screenshot 2024-12-10 at 12 58 05

Let me know what your system shows in the new DNS line.

@Braccato
Copy link

Braccato commented Dec 10, 2024

Ok I tested

yes the DNS and visible

@dl9rdz
Copy link
Owner

dl9rdz commented Dec 10, 2024

Ok, what exactly is shown, the same IP address (192.168.1.1) as in my screenshot?
And below APRS is stuck in "DNS lookup"?

@Braccato
Copy link

we

@Braccato
Copy link

a question, how can i deactivate the on board gps?

@dl9rdz
Copy link
Owner

dl9rdz commented Dec 10, 2024

Alright, so DNS is an IPv6 address, that is good to know.
What IP does the TTGO have, I assume that is an IPv4?
And then accessing the IPv6 DNS server will fail... I added 8.8.8.8 as DNS3 (fallback) in the latest firmware, did this change anything regarding connecting to radiosondy?

Deactivate GPS: depends on what you want

  • Completely disable (no power, maybe to save battery): Modify the source code (pmu.cpp to not enable the GPS power on the power controller)...
  • Just not use it: In the hardware config set "GPS RXD pin (-1 to disable)" to -1
  • Not send your position to aprs/sondehub: set SondeHub location reporting and APRS location reporting to 0 (off) or 1 (fixed)

@Braccato
Copy link

IP TTGO: 192.168.1.58 IPV4

the connection now seems to work fine

23

@Cofen86
Copy link
Author

Cofen86 commented Dec 10, 2024

Good evening, my rdz ttgo does not update to the new version.
clicking the "available dev2" button is displayed
"Doing update, wait until reboot" but the old version still remains....

@Braccato
Copy link

turn off ttgo and do it again

@Cofen86
Copy link
Author

Cofen86 commented Dec 10, 2024

Already tried but nothing changes

@dl9rdz
Copy link
Owner

dl9rdz commented Dec 22, 2024

Finally found a dual-stack Fritzbox AP for testing.

  • The problem was that while the TTGO connected in IPv4 mode, the router sends RDNSS advertisement for the IPv6 DNS server, which the TTGO received and updated its DNS server (which it could not contact with IPv4)

  • With an upgraded IDF version this problem seems to have gone.

  • The additional workaround with setting DNS3 to 8.8.8.8 is still in place (but should not be needed anymore)

  • If your TTGO is running a version with the DNS/IPv6 problem then also the OTA update is affected. As soon as the the TTGO receives an RDNSS advertisement it will stop being able to use DNS (and do OTA updates). There usually should be a time window between setting the correct DNS (with DHCP) and overwriting it with the wrong DNS (with the RDNSS broadcast). If not then you need to manually flash via USB...

  • Another potential solution (not currently active) is to actually enable IPv6 on the TTGO. This seems to work nicely for outgoing connections (and then the IPv6 DNS server will also work), but not for incoming connections to the integrated web server. So no IPv6 only operation possible right now. I will leave this disabled for now.

@dl9rdz
Copy link
Owner

dl9rdz commented Dec 31, 2024

Closing this issue as I think all problems are resolved now

  • Unfortunately the "wrong" config with radiosondy.info being twice in the config was in the default config. This is fixed new
  • The IPv6 issues should be resolved now as well... (IPv6 itself has not been activated yet, but so far noone has requested this feature anyway....)

@dl9rdz dl9rdz closed this as completed Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants