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

Search:

Type: Posts; User: shawn

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. That link helped, thanks. I think I understand...

    That link helped, thanks. I think I understand better now why a very large “it depends” is the best answer. :D
  2. In that case, when writing an ISR that changes an...

    In that case, when writing an ISR that changes an IRQ config bit or clears the IRQ itself, when is “dsb” needed at the end and when isn’t it needed? I know you’re saying something about “cpu...
  3. I noticed that the IntervalTimer.cpp...

    I noticed that the IntervalTimer.cpp implementations (teensy3 and teensy4) don't use a "dsb" instruction at the end of their interrupts after changing status. Should they be there and an issue/PR...
  4. Is `__ASM volatile ("dsb 0xF":::"memory")`...

    Is `__ASM volatile ("dsb 0xF":::"memory")` equivalent to `asm volatile("dsb")`? (`__DSB()` function from teensy4/cmsis_gcc.h) If so, would uses of `__DSB()` be appropriate?
  5. Great! Sounds like it’s working out for you and...

    Great! Sounds like it’s working out for you and that you’ve found the tools you need. That writeFully() thing is to make your code more robust, even if no bytes need to be retransmitted most of the...
  6. Hi, @mrm. Here's some notes: 4. I just know...

    Hi, @mrm. Here's some notes:

    4. I just know that they exist and may have interesting things they do to keep data streaming in "real time" that might be of interest.

    5. DMA might be fast, but...
  7. Replies
    20
    Views
    3,858

    I did a new version and here's the list of...

    I did a new version and here's the list of PTP/IEEE 1588 building blocks:

    1. Read the timer,
    2. Write the timer,
    3. Get the timestamp of RX frames,
    4. Timestamp TX frames and get the timestamp,...
  8. I’m really curious what the results will be. Some...

    I’m really curious what the results will be. Some random thoughts and questions:
    1. How big is each sample?
    2. Why are you waiting for 10000 samples (1 second)? How did you choose this number? I...
  9. Replies
    8
    Views
    336

    Most of my projects have at least several files...

    Most of my projects have at least several files and I don’t love using the Arduino IDE for them. (I’ll use it for small test programs.) My current favourite is Visual Studio Code plus the PlatformIO...
  10. Replies
    20
    Views
    3,858

    I updated (force-pushed) the `ieee1588` branch in...

    I updated (force-pushed) the `ieee1588` branch in QNEthernet to include raw frame timestamping ability.

    The link: https://github.com/ssilverman/QNEthernet/tree/ieee1588
  11. I just released v0.12.0 with a new raw Ethernet...

    I just released v0.12.0 with a new raw Ethernet frame API, `EthernetFrame`. You can now send and receive frames that lwIP doesn't know about. See the release notes.
  12. Replies
    91
    Views
    7,944

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

    I just released v0.12.0. The changes:



    ## [0.12.0]

    ### Added
    * Added a way to disable and enable Nagle's algorithm. The new functions are
    `EthernetClient::setNoDelay(flag)` and...
  13. I like to use Lua via a web interface, but that’s...

    I like to use Lua via a web interface, but that’s mostly for behavioral changes. It’s also possible to set variables there. Or, some sort of form via a webpage is also useful. The persistence is in a...
  14. Thanks for the extra detail. I want to add raw...

    Thanks for the extra detail. I want to add raw packet reception to the QNEthernet API next, and I think I’ll try to add IPv6 after that. I don’t have a timeline for this, however. It’s a “when I have...
  15. Replies
    20
    Views
    3,858

    I just provided an interface to the low-level...

    I just provided an interface to the low-level timestamping and timer functions. I’m not well versed in using them or what the “actual needs” are yet.

    The requirements are knowing how to use a...
  16. Is your goal to just send and receive IPv6...

    Is your goal to just send and receive IPv6 packets or is it IPv6 plus send and receive raw packets? (All with PTP.)
  17. Replies
    20
    Views
    3,858

    @TeensyWolf I do :) See the top of the README...

    @TeensyWolf I do :) See the top of the README here. Thank you for asking about it.
  18. PTP info (because I mentioned it above):...

    PTP info (because I mentioned it above): https://forum.pjrc.com/threads/27467-PTP-(IEEE-1588)-Library?p=296909&viewfull=1#post296909
  19. Replies
    91
    Views
    7,944

    See the following post for more IEEE 1588 details...

    See the following post for more IEEE 1588 details for the library. There’s lots of posts discussing or asking about PTP, so I just chose one....
  20. Replies
    20
    Views
    3,858

    I'm experimenting with adding IEEE 1588 stuff to...

    I'm experimenting with adding IEEE 1588 stuff to QNEthernet. To make sure I'm going in the right direction, here's the features I've added so far:


    Read the timer register (ENET_ATVR):

    ...
  21. Most definitely. :)

    Most definitely. :)
  22. At first I was wondering if the NativeEthernet...

    At first I was wondering if the NativeEthernet library's 1ms timer interrupt is causing issues. The OctoWS2811 adapter code uses DMA, so I _think_ that will not let that timer interrupt affect...
  23. That's because, in the simplest way of looking at...

    That's because, in the simplest way of looking at it, you can't pass an instance function as a regular function pointer. @luni wrote an adapter that can address this by allowing you to use a...
  24. Some extra info: I tend to see these crashes with...

    Some extra info: I tend to see these crashes with the Arduino IDE, and when I open/close/reopen the serial monitor, with some combination of plugging/unplugging/programming the Teensy. I've never...
  25. Replies
    91
    Views
    7,944

    @TeensyWolf: I made a new "ieee1588" branch in...

    @TeensyWolf: I made a new "ieee1588" branch in the project: https://github.com/ssilverman/QNEthernet/tree/ieee1588
    Do a diff with the "master" branch to see what changed in the API. Let me know if...
  26. Note: `println` doesn't necessarily guarantee...

    Note: `println` doesn't necessarily guarantee that all the bytes are written. Technically, you need to loop until all the bytes are written. Additionally, the `print` and `println` calls don't always...
  27. You might be looking for the...

    You might be looking for the “application/x-www-form-urlencoded” content type. Or perhaps even “multipart/form-data”. See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST
  28. Replies
    21
    Views
    1,877

    Sticky: It's greyed out in the Mac version. Yes, the...

    It's greyed out in the Mac version. Yes, the answer was found, but I'll pose "why is 'Clear' greyed out in the Mac version" as my second question. :) (I should have said it was the Mac version in the...
  29. Replies
    21
    Views
    1,877

    Sticky: Thanks. I was able to see `Board is: Teensy 4.1...

    Thanks. I was able to see `Board is: Teensy 4.1 (IMXRT1062), version 1.07`. My Log->Clear menu option, however, is greyed out. Is there a way to enable it? I tried toggling the Auto mode, but the...
  30. Replies
    21
    Views
    1,877

    Sticky: I'm still having some trouble seeing which...

    I'm still having some trouble seeing which bootloader a Teensy 4.1 is on. The Verbose Info from 1.55:



    17:57:22.395 (loader): Teensy Loader 1.55, begin program
    17:57:22.474 (loader): Listening...
  31. You need to start the Ethernet driver with...

    You need to start the Ethernet driver with Ethernet.begin() before the link state will work correctly. In QNEthernet, you don't need to specify the MAC address (because it internally reads the...
  32. Replies
    26
    Views
    1,234

    Small fix PR: Fix Print::printf() to call...

    Small fix PR: Fix Print::printf() to call va_end()
  33. Replies
    6
    Views
    350

    I haven’t read your code, but the program has...

    I haven’t read your code, but the program has probably crashed or is in some infinite loop or something. Simply load up one of the simple examples (eg. Blink), and when the Teensy Loader program says...
  34. Replies
    4
    Views
    373

    Yeah, Paul, Robin, and the products are pretty...

    Yeah, Paul, Robin, and the products are pretty awesome. “Thorough, robust, deep care.”

    I’ll add some points. The reference to “native ethernet” just means “built in”. There’s the two Ethernet...
  35. Replies
    11
    Views
    488

    I pushed a fix to WebSockets2:...

    I pushed a fix to WebSockets2: https://github.com/khoih-prog/WebSockets2_Generic/pull/35
    That will make its way to the Arduino IDE as soon as a new release of that library is made. Or, one could...
  36. Replies
    40
    Views
    2,277

    This is a great question. flush() does not...

    This is a great question.

    flush() does not apply to UDP in the same way as TCP. You'd think flush() flushes the output, just like every other API. For example, Arduino has Print::flush() and...
  37. Replies
    11
    Views
    488

    Thank you for that. After perusing the...

    Thank you for that. After perusing the WebSockets2 code last night, I think I know what the issues are. My plan is to file some issues in that repo.
  38. Replies
    11
    Views
    488

    Thank you for trying out those steps. Could you...

    Thank you for trying out those steps. Could you describe the issues you’re having with Websockets2? Is it the one from here?
    https://github.com/khoih-prog/WebSockets2_Generic

    Even if you don’t...
  39. Replies
    11
    Views
    488

    Buffers:...

    Buffers:
    https://github.com/ssilverman/QNEthernet/blob/4592d7636ce393dab67f887af6aedcf2ec1ef6b6/src/lwipopts.h#L41

    MEM_SIZE, I think 24 is much too small; try 4096:...
  40. Replies
    11
    Views
    488

    I haven’t done much work with optimizing for size...

    I haven’t done much work with optimizing for size (because memory is infinite, obviously :)) I use some STL stuff internally but I’ve always thought the compiler is pretty good with optimization and...
  41. Replies
    25
    Views
    2,204

    Will the final 1.56 release update the bootloader...

    Will the final 1.56 release update the bootloader on older Teensy 4’s and 3’s to 1.07? How can I tell which bootloader version I have?

    Update: I did notice this in the beta 3 notes: Teensy Loader...
  42. Replies
    91
    Views
    7,944

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

    I just released v0.11.0. The changes:



    ### Added
    * Implemented `EthernetClass::setMACAddress(mac)`.
    * Added `EthernetServer::maxListeners()`, `EthernetClient::maxSockets()`, and
    ...
  43. Replies
    40
    Views
    2,277

    Thank you for the acknowledgements. To help...

    Thank you for the acknowledgements.

    To help clarify when data is actually sent, I'm adding a "Write immediacy" subsection to the "How to write data to connections" section in the README. Here's my...
  44. On Teensy 4, I thought const variables, while...

    On Teensy 4, I thought const variables, while they reside in flash by virtue of being stored in the program, are copied to RAM? It was also my understanding that they don’t get copied to RAM if...
  45. Replies
    2
    Views
    325

    Since you’re using NUL-terminated string-based...

    Since you’re using NUL-terminated string-based printing to print to the console, it will stop printing at the first NUL character. I’d expect it to print “$”, though, since a NUL is after that.
  46. Replies
    5
    Views
    494

    Any class that derives (directly or indirectly)...

    Any class that derives (directly or indirectly) from the Print class also has a printf function.

    See:...
  47. Replies
    5
    Views
    494

    There's always printLeadingZeros(myNumber)...

    There's always printLeadingZeros(myNumber) (pseudocode) and then Serial.print(myNumber, 2), but that's slow.

    I don't think you need `btnsBinary[0] = 0`. Did you mean `btnsBinary[16] = 0`?

    The...
  48. @vjmuzik is right. QNEthernet isn’t thread safe....

    @vjmuzik is right. QNEthernet isn’t thread safe. But I’ll add that you could access it from a single thread and it should work fine, even if that single thread shares time with other threads. (I’m...
  49. Sure. Could you add a link back to this post too?

    Sure. Could you add a link back to this post too?
  50. How to: stdio (printf, scanf, stdout, stderr, stdin, fgetc, etc.)

    I thought I'd share my experience with adding support for the stdio functions and standard streams.

    The Teensy uses a standard library called "Newlib" (or "Newlib-nano", depending on how your...
Results 1 to 50 of 397
Page 1 of 8 1 2 3 4