-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Unable to send packets with UDP sock #8457
Comments
I'm going to look into it ASAP. |
I was thinking, why sock is not into the release specs? |
The test @rfuentess is using is in the release specs (Task 2), so it would have come up eventually. |
Oh I see, I thought it was not included because I didn't find it explicitly into the single hop tests or something like that. |
After playing with
|
Well that was to be expected that is was one of these reworks ;-). Found the error in the tests at least btw (will open a PR in a moment), but I'm not sure this helps you with your sock_udp problem. |
See #8459 |
@rfuentess can you see if your other problems are also fixed with #8459? |
@miri64 #8459 already tested, and sadly not, my UDP client is still not working. Which is bizarre, the commit previous to the faulty one is not giving me problems with my sock UDP client. By the way, my client believes the message was sent (s |
Not fixed, as reported by @rfuentess. |
I'll look into it. Error codes can mean nothing with GNRC. |
We encountered an issue that could potentially be related to this one, but we are not sure. Compiled the SNTP test on bluepill with attached AT86RF212b. When we try to get NTP time from the server we are not able to. tcpdump on the server shows an incoming and outgoing NTP packet, but the console on RIOT reports this (i'm cleaning up the IPv6 address, as those are routable and public):
This is with ENABLE_DEBUG(1) both on the SNTP and GNRC_UDP modules. Could this potentially be related or is this another issue? |
My original issue that led me to detect the faulty test is now identified: When link-local addresses are used, an interface must be set explicitly (even if there is only one), before the rework it was not necessary, yet it was a faulty behavior. PR #8470 mitigates this behavior. Of course, a more robust client is the best solution for scenarios with multiple interfaces. Sadly, this means that @ilf-S 's issue is not related to this one as they are using global scope addresses. |
@ilf-S regarding your problem: it looks like the timeout is set too tight (I think up until now it was only tested in a local set-up). If the problem persists with a larger timeout, please open a separate issue. |
(the default timeout is 5000 μs which might indeed be pretty low for a IEEE 802.15.4 multihop scenario). |
I don't know if I should continue writing in this issue, if it's wrong, I'm sorry, let me know if I should open a new one. Just a bit more info on the issue. Despite using global addresses, we are talking about an SNTP (openntpd) server literary on the next hop (i.e. RaspberryPi serving as BR). My first thought was that the timeout was too low, so I tried with different timeouts going as high as 100000. The result is still the same:
Sidenote: tcpdump on RPi shows an incoming NTPv4 packet and an outgoing one. NTP server stats report client querying it. Advises are welcome. |
Please let's discuss this in a separate issue, otherwise we risk this discussion to get lost. |
Hi people,
Description
I was working with a simple sock UDP client/server code when I noticed I lost the ability to send UDP messages. Though, the gcoap example is working fine.
As I was unable to determine the source of my problem, I run
test/gnrc_sock_udp
in the current master and got errors. Can anyone else confirm this behavior?Steps to reproduce the issue
Expected results
Execution of the test with the release 2017.10:
Actual results
Execution of the test with current master (2018.04-devel-46-g8ab83):
Versions
The text was updated successfully, but these errors were encountered: