Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: shawn

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    135
    Views
    14,076

    Would you mind starting a new thread for your...

    Would you mind starting a new thread for your question?
  2. Replies
    135
    Views
    14,076

    I still need to see your code. Iíve written...

    I still need to see your code. Iíve written several Art-Net and sACN programs with QNEthernet and they work fine. Iím not sure what youíre doing differently.
  3. Replies
    135
    Views
    14,076

    I’d need to see code. Checking for Art-Net in...

    I’d need to see code. Checking for Art-Net in yield() via EventResponder doesn’t seem like the right place and the code may be overcomplicated. Instead, what happens if it’s ultimately checked from...
  4. Note that QNEthernetís Ethernet.begin() is...

    Note that QNEthernetís Ethernet.begin() is non-blocking. Also, you donít have to specify a MAC address.
  5. Replies
    1
    Views
    119

    One way to fix this that I think might work is to...

    One way to fix this that I think might work is to include these library headers separately in two different compilation units instead of both from the main file.
  6. What is ďTSETĒ?

    What is ďTSETĒ?
  7. Curious, will there be a MacOS version of...

    Curious, will there be a MacOS version of 1.58-beta2?
  8. Replies
    135
    Views
    14,076

    Thank you, Werkstatt! :)

    Thank you, Werkstatt! :)
  9. Changing parsePacket() to allow zero-length packets; impact assessment

    I'm updating QNEthernet's handling of `EthernetUDP::parsePacket()` to return -1 if there's no packet available instead of zero. This allows for zero-length packets. However, I've seen examples that...
  10. Replies
    135
    Views
    14,076

    I just released 0.15.0. The changes: ###...

    I just released 0.15.0. The changes:



    ### Added
    * Added a way to enable promiscuous mode: define the
    `QNETHERNET_PROMISCUOUS_MODE` macro.
    * Added a way to remove all the mDNS code: set...
  11. Replies
    1
    Views
    143

    You can do exactly what you've done, or you could...

    You can do exactly what you've done, or you could also create it with `new EthernetServer(webPort)`.

    I'm working on an experimental feature in QNEthernet where you can give the port number in the...
  12. See also the AppWithListenersTemplate example for...

    See also the AppWithListenersTemplate example for a variety of things you can do for setup in a basic app. (Note that not all of the code is meant to be included, itís just illustrative.)
  13. QNEthernet has a "set DHCP option 12" feature...

    QNEthernet has a "set DHCP option 12" feature that can set the hostname. See `Ethernet.setHostname()`. Note that there's also mDNS features where you can set a network-local name. For mDNS, see the...
  14. Replies
    7
    Views
    240

    I opened a PR on FastLED too:...

    I opened a PR on FastLED too: https://github.com/FastLED/FastLED/pull/1413
  15. Replies
    4
    Views
    283

    Thereís also int64_t.

    Thereís also int64_t.
  16. Replies
    135
    Views
    14,076

    Thanks. After some discussion...

    Thanks. After some discussion (https://github.com/ssilverman/QNEthernet/issues/15), it turns out that this is expected TCP behaviour. The solution to reduce the waiting time is to either use...
  17. Replies
    4
    Views
    264

    It is not strictly necessary; itís there,...

    It is not strictly necessary; itís there, however, for completeness. Setting the DNS with the QNEthernet-style API matches the Arduino-style API that you were using before with NativeEthernet. With...
  18. Replies
    4
    Views
    264

    Here's some illustrative code that should work...

    Here's some illustrative code that should work with QNEthernet. (Caveat: I'm not near a Teensy so haven't tested it.)



    #include <QNEthernet.h>

    using namespace qindesign::network;
    ...
  19. Replies
    135
    Views
    14,076

    Thanks for the report. Could you file an issue in...

    Thanks for the report. Could you file an issue in the GitHub repository? See here: https://github.com/ssilverman/QNEthernet/issues

    (If you don't have an account there, let me know and I'll file it...
  20. QNEthernet is mostly a drop-in replacement, but...

    QNEthernet is mostly a drop-in replacement, but there are additional features that I think make the library easier to use, more robust, and more functional, once you learn how to use it. But at the...
  21. Have you tried using the regular Arduino IDE and...

    Have you tried using the regular Arduino IDE and not Teensyduino for the non-Teensy devices?
  22. Another method is to convert them to C-style...

    Another method is to convert them to C-style arrays in an include file and then ensure they stay in flash via the PROGMEM attribute.
  23. Here's a modified version to work with...

    Here's a modified version to work with QNEthernet. I'm curious how it works for you. I took the liberty of modifying the structure to be closer to how I would do it.



    #include <QNEthernet.h>
    ...
  24. Replies
    11
    Views
    403

    Here's a version that is designed for QNEthernet....

    Here's a version that is designed for QNEthernet. I took out the #ifdefs for readability and added a few notes. (Hopefully I didn't make any mistakes.) There's a few other ways to do things here,...
  25. Replies
    3
    Views
    271

    If you want to eliminate any transmission delays,...

    If you want to eliminate any transmission delays, you can call flush() after sending TCP data when using QNEthernet. It’s possible the ArduinoModbus API needs to be changed to support this. Without...
  26. Replies
    135
    Views
    14,076

    Under the hood, incoming data is handled with...

    Under the hood, incoming data is handled with callbacks, but with polling and not interrupts. The stack is polled for input every time Ethernet.loop() is called, which happens in a number of places...
  27. Replies
    135
    Views
    14,076

    Yes, that’s correct. I chose “buffer if it can”...

    Yes, that’s correct. I chose “buffer if it can” over “send always” because lwIP’s API is similar, so I basically just did a direct mapping. Plus there exists that flush() call in the Arduino API (I...
  28. Replies
    135
    Views
    14,076

    Call flush() to send any buffered data...

    Call flush() to send any buffered data immediately. For reference, see the ďWrite immediacyĒ section in the Readme.

    Thereís no equivalent for setSocketSize() or setStackHeap(). Those are specific...
  29. Replies
    11
    Views
    403

    Do you feel like trying QNEthernet instead of...

    Do you feel like trying QNEthernet instead of NativeEthernet to see if the issue still exists?
  30. Replies
    24
    Views
    1,772

    I couldn’t promise a timeline, but if you send me...

    I couldn’t promise a timeline, but if you send me some hardware I could poke around with modifying QNEthernet. I think only lwip_t41.c would need to be modified.
  31. Replies
    19
    Views
    677

    Sounds like youíre specifying a static IP and not...

    Sounds like youíre specifying a static IP and not getting one through DHCP. If waitForLocalIP() returns false then no address was assigned via DHCP. (Using the Ethernet.begin() form.) I donít think...
  32. Replies
    19
    Views
    677

    What does the return value of waitForLocalIP()...

    What does the return value of waitForLocalIP() give? You need to check that to see if an IP address was actually acquired.
  33. Replies
    135
    Views
    14,076

    There’s also wolfSSL.

    There’s also wolfSSL.
  34. Replies
    135
    Views
    14,076

    I believe TLS sits on top of TCP/IP. I have no...

    I believe TLS sits on top of TCP/IP. I have no current plans to add it to the library. (Let me see what lwIP has…)
  35. DMX512 uses a differential pair (RS-485) and is...

    DMX512 uses a differential pair (RS-485) and is not compatible with the Teensy serial ports (i.e. UART-style signalling). You need a transceiver. Something like this:...
  36. I just tested this on a Teensy 4.0 and it seems...

    I just tested this on a Teensy 4.0 and it seems to work as expected. Is it possible something isn't connected correctly?

    I tested your code and I tested with adding a `delay(10)` after the...
  37. Replies
    19
    Views
    677

    Well, then. I stand corrected on the DHCP server....

    Well, then. I stand corrected on the DHCP server. :)

    I always thought most modern Ethernet jacks don’t need crossover cables anymore. Is that not the case here?

    I did not know that about...
  38. Replies
    19
    Views
    677

    If youíre using the Ethernet.begin() form then it...

    If youíre using the Ethernet.begin() form then it will try DHCP. I have a feeling that your computer isnít running a DHCP server, so by the time the 10-second wait time is over, thereís still no IP...
  39. Replies
    19
    Views
    677

    QNEthernet doesn’t block or wait on any of the...

    QNEthernet doesn’t block or wait on any of the begin() functions, even if there’s no cable plugged in. There are a few options for waiting for an address from DHCP. See the examples for more...
  40. Replies
    14
    Views
    1,038

    Another fun fact: Changing the toolchain from...

    Another fun fact: Changing the toolchain from version 1.50401.190816 (5.4.1) to version 1.90301.200702 (9.3.1) (using PlatformIO and a small test program) saves about 40k of RAM1 and about 45k of...
  41. Replies
    135
    Views
    14,076

    Try setting LWIP_DNS_SUPPORT_MDNS_QUERIES to 1 in...

    Try setting LWIP_DNS_SUPPORT_MDNS_QUERIES to 1 in lwipopts.h (line 148). I think I'll add this to the next release.

    Side point: the "(const char *)" casts aren't needed.
  42. Replies
    31
    Views
    14,835

    Some links about structs: *...

    Some links about structs:
    * https://stackoverflow.com/questions/5397447/struct-padding-in-c
    * http://www.catb.org/esr/structure-packing/

    The internal structure of structs is not standardized and...
  43. Replies
    135
    Views
    14,076

    I just released v0.14.0 of the library. The...

    I just released v0.14.0 of the library. The changes:



    ## [0.14.0]

    ### Added
    * Added a `util::StdioPrint` class, a `Print` decorator for stdio output files.
    It routes `Print` functions to...
  44. It looks like there are conflicting defines.

    It looks like there are conflicting defines.
  45. Here's my quickie test programs. I've never seen...

    Here's my quickie test programs. I've never seen it fail on the receiving Teensy. I always see "size=1" printed.
    Question: Once you see the packet size change to zero, does it ever go back to being...
  46. One major thing I noticed about the code is that...

    One major thing I noticed about the code is that you're printing strings without a guaranteed NUL terminator. `Udp.write("1")` only sends one byte. Then, when it's received into `data2` on the other...
  47. You’re saying that parsePacket() never returns...

    You’re saying that parsePacket() never returns non-zero when you send packets? Could you provide a simple example program that you know exhibits the problem?
  48. When using QNEthernet: What are you seeing for...

    When using QNEthernet: What are you seeing for the return value of endPacket()? Also beginPacket() and write()? For write(), does the return value match the number of bytes sent?
  49. This might help:...

    This might help: https://github.com/ssilverman/QNEthernet/blob/master/examples/SNTPClient/SNTPClient.ino
  50. Note that the EthernetFrame API wonít receive any...

    Note that the EthernetFrame API wonít receive any known frame types. These include IP (including UDP and TCP) and ARP.
Results 1 to 50 of 496
Page 1 of 10 1 2 3 4