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

Search:

Type: Posts; User: shawn

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. I’d still love to know what’s going on with your...

    I’d still love to know what’s going on with your setup. I can’t get a local connection to connect in more than 8 milliseconds. All told, each connection, write, read, and stop() call takes...
  2. This is an off-the-cuff attempt at pipelining...

    This is an off-the-cuff attempt at pipelining requests. Note that `relayNONE` changes its meaning slightly. You might need a variable with a different meaning. In fact, unless you actually read the...
  3. Replies
    8
    Views
    2,574

    @aom It's possible to use a Teensy to translate...

    @aom It's possible to use a Teensy to translate Art-Net to and from DMX, using just the Teensy.
  4. Replies
    33
    Views
    792

    It looks like you have an extra semicolon here: ...

    It looks like you have an extra semicolon here:



    if (dmxToggle == HIGH); {
    playDmx();
    }
  5. Thanks for that. When I have a chance, I'll show...

    Thanks for that. When I have a chance, I'll show you how to pipeline everything properly (well, "mostly" properly, short of writing a complete HTTP client) into one request to avoid TCP...
  6. What is the delay between the relays (this was my...

    What is the delay between the relays (this was my question, not the total time)? Sounds like about 250ms?

    Update: While I think about why this is (it may have something to do with the 250ms TCP...
  7. @jimmie, in addition to commenting out that while...

    @jimmie, in addition to commenting out that while loop in EthernetClient::stop(), did you also have a call to client.flush() after writing all the data? stop() flushes too; I'm just wondering if it...
  8. @vjmuzik you may be right. I have a while loop in...

    @vjmuzik you may be right. I have a while loop in stop() because the Arduino spec says the connection timeout is also for that function. I now see the wisdom of your close() function. Iíll look into...
  9. Whenever you use print/println/write, you...

    Whenever you use print/println/write, you **MUST** check the return value. If you send many small packets to the network, it will get a little backlogged and then start not sending data. You can...
  10. Here's an off-the cuff change: void...

    Here's an off-the cuff change:



    void allRelayOFF()
    {
    if (setRelayStatus(1, 0))
    {
    relayNONE = false;
    setRelayStatus(2, 0);
  11. Replies
    9
    Views
    994

    I have a PR that fixes the pixel/bits ordering on...

    I have a PR that fixes the pixel/bits ordering on a Teensy 4 (tested using a Teensy 4.1): https://github.com/FastLED/FastLED/pull/1309

    The current code doesn't display correctly.

    To alter the...
  12. Barring any mistakes I've made, and I don't...

    Barring any mistakes I've made, and I don't guarantee there aren't any, I've attached a revamped version of that file you attached (webServer.ino). You might want to do a diff to verify my changes.
    ...
  13. The problem is also that you're sending little...

    The problem is also that you're sending little chunks one at a time to the stack. I would, even instead of replacing all "print" or "println" with "writeFully", drastically reduce the number of...
  14. Replace print with writeFully and println with...

    Replace print with writeFully and println with writeFully, but adding “\r\n”. Note that in HTML, you don’t really need to append those CRLF characters. I’d suggest just using writeFully without the...
  15. Note that I forgot to add to that README section...

    Note that I forgot to add to that README section that the client class now provides a writeFully implementation, so you donít need to provide your own.
  16. Try client.writeFully instead of print. There’s...

    Try client.writeFully instead of print. There’s no guarantee that all the data gets sent otherwise. See https://github.com/ssilverman/QNEthernet#how-to-write-data-to-clients. (Note that I forgot to...
  17. See this post...

    See this post for a pointer to a server example. In the meantime, I will have a look at your module. (Won’t be immediate, necessarily.)
  18. The ServerWithAddressListener...

    The ServerWithAddressListener example in QNEthernet should be robust against network disconnects (tested with DHCP and with swapping physical networks (i.e. changing subnets)). The listener approach...
  19. Can you show the complete program? The println...

    Can you show the complete program? The println calls aren’t necessarily incorrect, but I’d have to see what else you’re doing.
  20. Replies
    22
    Views
    589

    I found I can’t see line numbers unless I also...

    I found I can’t see line numbers unless I also compile with the -g option.
  21. Replies
    33
    Views
    792

    (Note: you need an “end code” when wrapping code...

    (Note: you need an “end code” when wrapping code — [/CODE].)



    data[7] = 0;
    data[8] = 128;
    data[9] = 128;
    Etc…
  22. Replies
    39
    Views
    2,459

    Sticky: I just noticed thereís no git tag for v1.55:...

    I just noticed thereís no git tag for v1.55:
    https://github.com/PaulStoffregen/cores/releases/tag/1.55

    I created an issue for this: https://github.com/PaulStoffregen/cores/issues/622

    Perhaps...
  23. Replies
    33
    Views
    792

    Here's some code I whipped up. There's lots and...

    Here's some code I whipped up. There's lots and lots of ways to tackle this. Hope this is useful.



    // C++ includes
    #include <vector>

    #include <TeensyDMX.h>

    namespace teensydmx =...
  24. Replies
    33
    Views
    792

    Glad you figured it out. Sounds like “ID” is...

    Glad you figured it out. Sounds like “ID” is really just “DMX Channel Base”. Side note: that last line, #73, should end in 511.

    This also means you can use the same universe and just set all the...
  25. Replies
    30
    Views
    1,582

    I went through a few of my outstanding issues and...

    I went through a few of my outstanding issues and made a few PRs (including an updated one that doesn't have an attached issue):


    https://github.com/PaulStoffregen/cores/pull/416 (Disable...
  26. Replies
    33
    Views
    792

    Some questions and comments: 1. Change "11520"...

    Some questions and comments:
    1. Change "11520" to "115200" in that commented-out Serial.begin(). (For posterity.)
    2. One DMX universe consists of essentially one serial port and 513 slots. (The...
  27. Replies
    70
    Views
    3,789

    I just released v0.8.0. The changes: ###...

    I just released v0.8.0. The changes:



    ### Added
    * Added a check that `Entropy` has already been initialized before calling
    `Entropy.Initialize()`.
    * Added a "How to write data to clients"...
  28. Replies
    16
    Views
    490

    I just added `EthernetClient::closeOutput()`,...

    I just added `EthernetClient::closeOutput()`, which performs a half close. I also updated the `ServerWithAddressListener` example to use it.

    Here's new code (update to the latest QNEthernet on...
  29. Replies
    16
    Views
    490

    @vjmuzik youíre right. Thank you for this...

    @vjmuzik youíre right. Thank you for this reminder. I just read https://datatracker.ietf.org/doc/html/rfc7230#section-6.6 and I see the issue. I think, when I was implementing the connection shutdown...
  30. Second very hard crash today while trying to...

    Second very hard crash today while trying to upload. Something is very wrong with the Mac’s Thunderbolt/USB drivers.
  31. Replies
    4
    Views
    289

    Currently, I'm shutting down the PHY, disabling...

    Currently, I'm shutting down the PHY, disabling the PLL (just re-added), and then disabling the ENET clock.
    Here's the link to the code (enet_deinit()):...
  32. I still see hard crashes ó grey screens on death,...

    I still see hard crashes ó grey screens on death, about once every two or three weeks ó on a MacBook Pro (13Ē 2020), macOS Big Sur 11.6. Teensy 4.1 connected via a CalDigit TS3 Plus. Teensyduino 1.54...
  33. Replies
    16
    Views
    490

    The transfer is fairly instant for me. I tried...

    The transfer is fairly instant for me. I tried with `nc` on the command line and with Safari. The Teensy is connected to an eero and my computer is connected wirelessly to the same network. What does...
  34. Replies
    7
    Views
    1,134

    There’s now a second option too: QNEthernet...

    There’s now a second option too: QNEthernet. It doesn’t pause when there’s no cable connected. That might fix the issue. See also the attached examples. They’re not simple, but they show other ways...
  35. Replies
    30
    Views
    1,582

    Is it desired to put pull request reminders here,...

    Is it desired to put pull request reminders here, or is that not appropriate in these beta threads? I did for 1.54 and a PR got in, but not for 1.55.
  36. Replies
    4
    Views
    289

    It turned out that the solution to the DHCP issue...

    It turned out that the solution to the DHCP issue was to not "detach" or shut down the EventResponder (i.e. it's only "attached" once). When it needs to stop, a Boolean "active" variable is set to...
  37. Replies
    16
    Views
    490

    I'm playing with the code and I don't see any...

    I'm playing with the code and I don't see any pauses when loading the page in a browser or from the command line, if that's what you mean by "stalling".
  38. Replies
    16
    Views
    490

    I updated the README in QNEthernet to include a...

    I updated the README in QNEthernet to include a section on how to write data to clients, based on this discussion: How to write data to clients

    Input is welcome.
  39. Replies
    33
    Views
    792

    I’m glad you got it working! Thanks for sharing...

    I’m glad you got it working! Thanks for sharing the picture. Now I’m curious, what do you think is different or special about those fixtures? I wonder why my library works and not the others? I love...
  40. Replies
    33
    Views
    792

    Do let me know how the library works for you. Iím...

    Do let me know how the library works for you. Iím very interested in making sure it works well and robustly. (Iím assuming you mean this one: https://github.com/ssilverman/TeensyDMX. Itís also...
  41. Replies
    16
    Views
    490

    What do you mean by ďstallingĒ? Is it that all...

    What do you mean by ďstallingĒ? Is it that all the data gets there but there are periods during the transfer where no traffic is being transmitted? If that is so, which side pauses, or both? When you...
  42. Replies
    16
    Views
    490

    Couple comments: 1. The `print` functions also...

    Couple comments:
    1. The `print` functions also return the amount of data sent. There's technically no need to switch to `client.write()`, but I support using `write` over `print` because it's...
  43. Replies
    16
    Views
    490

    Could you add this above setup(): //...

    Could you add this above setup():


    // QNEthernet links this variable with lwIP's `printf` calls for
    // assertions and debugging. User code can also use `printf`.
    extern Print *stdPrint;

    ...
  44. Replies
    16
    Views
    490

    I just updated the `ServerWithAddressListener`...

    I just updated the `ServerWithAddressListener` example in the library to be a little more complete. See that example for other ways of implementing a server.
  45. Replies
    16
    Views
    490

    I'm curious if QNEthernet...

    I'm curious if QNEthernet exhibits the same problem. It's an Ethernet stack with the same [mostly] API but uses a different underlying IP stack (lwIP) and doesn't use timer interrupts for polling RX....
  46. I think examples will help. I’m saying: you could...

    I think examples will help. I’m saying: you could connect to serverx.com and put “trees.com” in the Host header. Then the server will use the “trees.com” content (whatever it has and decides...
  47. I mean, that could be what’s happening on the...

    I mean, that could be what’s happening on the server, sure, but in the general case, the Host value doesn’t need to match. (I’m commenting on the general case, I realize, and your answer may be more...
  48. The contents of the Host field doesn't...

    The contents of the Host field doesn't necessarily need a DNS lookup, and doesn't have to be related to the server address you've connected to. (If that's what you mean.)
  49. Where the client is routed for a given Host is up...

    Where the client is routed for a given Host is up to the server. Its intent is for “multihoming”. See: https://datatracker.ietf.org/doc/html/rfc7230#appendix-A.1.1

    My guess is that that 400 error...
  50. The Host value doesn’t necessarily need to...

    The Host value doesn’t necessarily need to identically match the server address. Also, if the server did have a problem with it, a 400 response doesn’t seem appropriate to me.
Results 1 to 50 of 319
Page 1 of 7 1 2 3 4