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.00 seconds.

  1. Replies
    86
    Views
    5,993

    @rya I've attached a different way to do the...

    @rya I've attached a different way to do the AdvancedChatServer; it just shows some other approaches. I've also made some changes to the library in the repo, so you might need to download the latest....
  2. Replies
    86
    Views
    5,993

    A few more comments :) Also, you've asked great...

    A few more comments :)
    Also, you've asked great questions.

    1. I was wrong about replacing `if (clients && !clients[i].connected())` with `if (!clients[i].connected())`. As your code is structured...
  3. Replies
    2
    Views
    156

    This is a really nice project.

    This is a really nice project.
  4. Replies
    86
    Views
    5,993

    I tried the program and it seems to work fine....

    I tried the program and it seems to work fine. Some notes and questions:

    1. Do you have the latest QNEthernet installed in your Arduino libraries folder? (The latest is v0.10.0, and not available...
  5. Replies
    86
    Views
    5,993

    Can you show the code you’re using? It’s easy to...

    Can you show the code you’re using? It’s easy to have resource leaks. Yes, you can use multiple clients.
  6. Replies
    86
    Views
    5,993

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

    I just released v0.10.0. The changes:



    ### Added
    * Added a way to send raw Ethernet frames. The new function
    is `EthernetClass::sendRaw(frame, len)`.
    * Added new sections to the README:
    ...
  7. I've noticed that I've never seen hard crashes...

    I've noticed that I've never seen hard crashes when using the PlatformIO toolchain. I see at least several a day, and sometimes several per hour, if I use the Teensyduino IDE v1.55 regularly. We're...
  8. Replies
    6
    Views
    362

    Where is the file Debug/print.h from? Maybe I’m...

    Where is the file Debug/print.h from? Maybe I’m missing something, but I don’t see that file in either NativeEthernet or in the Teensy cores (there’s a debug/printf.h file in teensy4, however).
    ...
  9. Replies
    16
    Views
    10,804

    Ok. Sounds like pre-Teensy 4, don’t need F(), but...

    Ok. Sounds like pre-Teensy 4, don’t need F(), but for Teensy 4 I need F() again. Thanks again, @KurtE.
  10. Replies
    16
    Views
    10,804

    Thanks, @KurtE. I was afraid of that answer. In...

    Thanks, @KurtE. I was afraid of that answer. In theory, then, do I need to define a PROGMEM variable for every string literal if I want them to go into PROGMEM? Can I teach the linker to tag const...
  11. Replies
    16
    Views
    10,804

    Just so I'm absolutely clear, on Teensy 4, do...

    Just so I'm absolutely clear, on Teensy 4, do `const` things still go into flash automatically?
  12. Cool, thanks! I used the “send email” link and...

    Cool, thanks! I used the “send email” link and not the “private message” link. (My email can also be found in either library.json or library.properties of that repo, for future reference.) Thanks for...
  13. Regarding #2, PJRC already publishes the full...

    Regarding #2, PJRC already publishes the full Teensy 3.2 schematics: https://www.pjrc.com/teensy/schematic.html

    What would be the harm with leaving this up? It’s a learning opportunity for others,...
  14. Replies
    86
    Views
    5,993

    @jdredd: There’s code in the NativeEthernet...

    @jdredd: There’s code in the NativeEthernet library that blocks (a spinning `while` loop) unless a cable is plugged in. QNEthernet can tolerate having a cable unplugged, even when the cable is...
  15. I’m curious why websockets would be better than a...

    I’m curious why websockets would be better than a regular socket here. Seems like a little more overhead. According to http://eng.kifi.com/websockets-vs-regular-sockets/, websockets are for...
  16. Replies
    86
    Views
    5,993

    It’s been on my mind the last few days. When I...

    It’s been on my mind the last few days. When I have some time, I’ll maybe look into what’s required to implement it from an API perspective. What would a good API look like to you? I know what 1588...
  17. Replies
    0
    Views
    168

    Missing ".h" suffix for USBHost_t36 include

    See this issue: https://github.com/PaulStoffregen/USBHost_t36/issues/74

    If the include file does not have a ".h" suffix, programs won't compile.
  18. Replies
    34
    Views
    1,328

    Cool stuff, thanks. I’m trying to diagnose which...

    Cool stuff, thanks. I’m trying to diagnose which problems are due to the stack, and which might be user code.
  19. Is it possible the forum doesn’t support...

    Is it possible the forum doesn’t support different files having the same name?
  20. Replies
    34
    Views
    1,328

    It’s okay if it doesn’t happen all the time. As...

    It’s okay if it doesn’t happen all the time. As long as the program is short (or as short as you can make it), I’ll have a look at it.

    Some options that should speed things up:
    1. Pre-generate...
  21. Replies
    34
    Views
    1,328

    Thanks. Ideally, if you could reproduce it with a...

    Thanks. Ideally, if you could reproduce it with a much shorter program, that would be great. I’m going to request that you do the work of trimming it while still seeing errors, until the program is...
  22. Replies
    34
    Views
    1,328

    Please post your whole program, or at least a...

    Please post your whole program, or at least a minimal program that demonstrates the issue. If I cut and paste into the Arduino IDE and it doesn’t compile or run, I can’t look at it.
  23. Replies
    6
    Views
    309

    @UncleMa I just added an `Ethernet.sendRaw(frame,...

    @UncleMa I just added an `Ethernet.sendRaw(frame, len)` function to the library. Watch for that when next I push "v0.10.0-snapshot".
  24. Replies
    6
    Views
    309

    Yep, that’s the one, and also LWIP_HOOK_VLAN_SET....

    Yep, that’s the one, and also LWIP_HOOK_VLAN_SET. See ethernet.c:ethernet_output(). Define those in lwipopts.h. (You may already know this; just stating it for future readers.)
  25. Replies
    6
    Views
    309

    Alternatively, do you just need to enable VLAN...

    Alternatively, do you just need to enable VLAN tagging? lwIP, I believe, supports that, and I could look into how to add that to QNEthernet.
  26. Replies
    6
    Views
    309

    You could probably adapt the initialization code...

    You could probably adapt the initialization code from either the NativeEthernet or QNEthernet libraries and just utilize the send function, taking into account some of the state management as...
  27. Replies
    86
    Views
    5,993

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

    I just released v0.9.0. The changes:



    ### Added
    * Added example that uses `client.writeFully()` to the "How to write data to
    connections" README section.
    * Added `EthernetClient::close()`...
  28. Replies
    34
    Views
    1,328

    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...
  29. Replies
    34
    Views
    1,328

    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...
  30. Replies
    8
    Views
    2,764

    @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.
  31. Replies
    33
    Views
    1,455

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

    It looks like you have an extra semicolon here:



    if (dmxToggle == HIGH); {
    playDmx();
    }
  32. Replies
    34
    Views
    1,328

    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...
  33. Replies
    34
    Views
    1,328

    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...
  34. Replies
    34
    Views
    1,328

    @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...
  35. Replies
    34
    Views
    1,328

    @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...
  36. Replies
    34
    Views
    1,328

    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...
  37. Replies
    34
    Views
    1,328

    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);
  38. Replies
    9
    Views
    1,241

    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...
  39. Replies
    34
    Views
    1,328

    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.
    ...
  40. Replies
    34
    Views
    1,328

    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...
  41. Replies
    34
    Views
    1,328

    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...
  42. 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.
  43. Replies
    34
    Views
    1,328

    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...
  44. Replies
    34
    Views
    1,328

    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.)
  45. 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...
  46. Replies
    34
    Views
    1,328

    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.
  47. Replies
    22
    Views
    947

    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.
  48. Replies
    33
    Views
    1,455

    (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…
  49. Replies
    44
    Views
    3,766

    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...
  50. Replies
    33
    Views
    1,455

    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 =...
Results 1 to 50 of 346
Page 1 of 7 1 2 3 4