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
    10
    Views
    157

    Do you feel like trying QNEthernet instead of...

    Do you feel like trying QNEthernet instead of NativeEthernet to see if the issue still exists?
  2. Replies
    21
    Views
    1,306

    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.
  3. Replies
    19
    Views
    312

    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...
  4. Replies
    19
    Views
    312

    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.
  5. Replies
    114
    Views
    10,416

    There’s also wolfSSL.

    There’s also wolfSSL.
  6. Replies
    114
    Views
    10,416

    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…)
  7. 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:...
  8. 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...
  9. Replies
    19
    Views
    312

    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...
  10. Replies
    19
    Views
    312

    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...
  11. Replies
    19
    Views
    312

    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...
  12. Replies
    14
    Views
    847

    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...
  13. Replies
    114
    Views
    10,416

    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.
  14. Replies
    31
    Views
    13,897

    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...
  15. Replies
    114
    Views
    10,416

    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...
  16. It looks like there are conflicting defines.

    It looks like there are conflicting defines.
  17. 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...
  18. 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...
  19. 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?
  20. 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?
  21. This might help:...

    This might help: https://github.com/ssilverman/QNEthernet/blob/master/examples/SNTPClient/SNTPClient.ino
  22. 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.
  23. Replies
    34
    Views
    2,530

    What do you think of this instead: // Give...

    What do you think of this instead:


    // Give Ethernet some time to initialize
    #if USING_DHCP
    if (!Ethernet.waitForLocalIP(10000)) {
    // do stuff
    } else {
    // do other stuff
    }
  24. Gotcha. Sounds like the FTP server code could be...

    Gotcha. Sounds like the FTP server code could be more clever. Thanks for that update.
  25. Here's what I believe happened: The fault is in...

    Here's what I believe happened: The fault is in the FTP server library that likely opens sockets until they're all used up (because of the all the PASV requests), and then the client hung on to them,...
  26. A few points: 1. Change defines in lwipopts.h...

    A few points:

    1. Change defines in lwipopts.h instead of via build options in platformio.ini because lwIP may overwrite defines you put in the build command with the ones in the source code.
    2....
  27. Replies
    34
    Views
    2,530

    I think I figured it out; there appear to be two...

    I think I figured it out; there appear to be two factors:

    1. The "route error" (ERR_RTE=-4) is because the link isn't yet detected to be up when a connection is attempted. To solve this, after...
  28. Replies
    34
    Views
    2,530

    What are you setting the netmask and gateway to?...

    What are you setting the netmask and gateway to? Also, what are these values when using DHCP?
  29. Replies
    34
    Views
    2,530

    @khoih-prog What do you see when you change to a...

    @khoih-prog What do you see when you change to a static IP? Also, do you have a suggestion for the quickest way to create a WebSockets server (preferably on a Mac)? (I haven't looked much yet...)
  30. Replies
    34
    Views
    2,530

    I loaded the `Teensy41_Client` example and...

    I loaded the `Teensy41_Client` example and changed:
    1. The IP, subnet mask, gateway, and DNS to something suitable,
    2. Changed USING_DHCP to false,
    3. Commented out the <TeensyID.h> and <SPI.h>...
  31. Replies
    14
    Views
    847

    @danielkr I was able to move lwiIP's heap to...

    @danielkr I was able to move lwiIP's heap to RAM2, so this should clear up some space. See the latest on GitHub.

    If you're using PlatformIO, delete `.pio/libdeps/teensy41/QNEthernet`, make sure...
  32. Replies
    9
    Views
    869

    @DaniO: this might be relevant:...

    @DaniO: this might be relevant: https://forum.pjrc.com/threads/69613-NativeEthernet-socket-size-bug?p=301188&viewfull=1#post301188

    It talks about larger UDP packets and IP fragmentation. There's...
  33. Replies
    11
    Views
    1,293

    In the QNEthernet library, should someone find...

    In the QNEthernet library, should someone find this thread:

    1. There's full multicast support. See: https://github.com/ssilverman/QNEthernet#how-to-use-multicast
    2. In addition, you can find the...
  34. @hijomojo: This might be relevant:...

    @hijomojo: This might be relevant: https://forum.pjrc.com/threads/69613-NativeEthernet-socket-size-bug?p=301188&viewfull=1#post301188

    It talks about larger UDP packets and IP fragmentation....
  35. Thanks! It’s also accessible from the Arduino...

    Thanks! It’s also accessible from the Arduino library manager, plus via PlatformIO using the GitHub URL. I do think it’s Teensyduino installer-worthy, but that’s up to Paul, I suppose (I haven’t...
  36. @MartyBrown yes, this is my library :) I wrote it...

    @MartyBrown yes, this is my library :) I wrote it because I needed something that didnít use a timer. Also, I figured that providing a library that used a different underlying stack (I also thought...
  37. Do you experience the same problem using the...

    Do you experience the same problem using the QNEthernet library? Note: the initialization is simpler than what you have in your demo code. See the examples for a few ways to initialize.
  38. Replies
    3
    Views
    169

    Which examples and libraries are you using?

    Which examples and libraries are you using?
  39. It's possible you're right and the library you're...

    It's possible you're right and the library you're using is only using one universe, even if it receives more. Or perhaps there's some configuration options you need to set?

    What do you see if you...
  40. Art-Net is one of the DMX incarnations. This...

    Art-Net is one of the DMX incarnations. This means that each “universe” has only 512 bytes of traffic. If we assume 8-bit colour and 3-byte RGB values, trunc(512/3) = 170. Are you only sending one...
  41. I noticed your question wasnít answered....

    I noticed your question wasnít answered. NativeEthernet does not use SPI.

    Iím wondering if youíd still see issues with the QNEthernet library. Do you feel like trying that out? See the examples...
  42. Replies
    6
    Views
    195

    Mostly, but there's a few more ways to do things....

    Mostly, but there's a few more ways to do things. I modified my post to include your code (with other small modifications) modified to work with QNEthernet.
  43. Replies
    6
    Views
    195

    Would you be interested in trying QNEthernet? I...

    Would you be interested in trying QNEthernet? I use its MDNS class there without problems.

    Here's approximately what the converted code should look like (I took the liberty of doing some small...
  44. Try instead adding this to your lib_deps (and...

    Try instead adding this to your lib_deps (and deleting any other QNEthernet/ under lib/ and .pio/libdeps/):
    https://github.com/ssilverman/QNEthernet.git

    When you have a board to test it with,...
  45. I haven’t released it. Side note: I don’t...

    I haven’t released it.

    Side note: I don’t think PlatformIO gets the latest code once it’s seen code attached to a version. Once its library manager sees a specific version, it won’t update that...
  46. Replies
    7
    Views
    378

    I figured it out. At least on my setup, you can...

    I figured it out. At least on my setup, you can send fragmented packets to a unicast address but not to a broadcast address. I tested with 1620*3-byte packets and the UDP reassembly appears to work...
  47. Replies
    17
    Views
    523

    On the Mac, I used to have to press the button...

    On the Mac, I used to have to press the button for each upload. Somewhere along the way, a few releases ago, the behaviour changed such that it was more like the Arduino IDE, where I didnít have to...
  48. Replies
    17
    Views
    523

    I use this on the Mac:...

    I use this on the Mac: https://www.decisivetactics.com/products/serial/
  49. Replies
    7
    Views
    378

    What are you using to send larger-than-the-MTU...

    What are you using to send larger-than-the-MTU UDP packets (i.e. requiring fragmentation)? For example, a C++ program on a desktop? I just wrote a quickie Java app in Processing that attempts to send...
  50. Replies
    7
    Views
    378

    Where this might matter is the TCP MSS and window...

    Where this might matter is the TCP MSS and window size, but it looks like you’re using UDP. Anything above 1472 bytes (for transports having a 1500-byte MTU) will be fragmented anyway, but at the IP...
Results 1 to 50 of 466
Page 1 of 10 1 2 3 4