P
Reaction score
0

Latest activity Postings About

    • P
      paniclemur replied to the thread Teensy 4.1 serial USB crash.
      Ah... Interesting! Thanks for looking into it.
    • P
      paniclemur replied to the thread Teensy 4.1 serial USB crash.
      Yes, that's correct. When the flashing stops is when the USB crash happens. The script is still running, but the serial port is no longer accessible.
    • P
      paniclemur replied to the thread Teensy 4.1 serial USB crash.
      I worked through a large set of possible options, but unfortunately haven't found a perfect solution with the USB. But thought I'd put here some findings. The leds.show() does indeed take 9ms in practice - and this is what is causing the USB...
    • P
      paniclemur replied to the thread Teensy 4.1 serial USB crash.
      At the moment, I'm only transmitting data at around 20fps, meaning each frame has 50ms, so should be well within the display time if the update is 9ms for show(), however it still crashes every 20 mins or so. In terms of the 9msec limit - I've...
    • P
      paniclemur replied to the thread Teensy 4.1 serial USB crash.
      Was wondering if anyone had any thoughts on the above? I've managed to improve the situation a bit in terms of only calling led.show() after a third of the LEDs have been updated, but it still hangs roughly every hour. I can also provide a Python...
    • P
      paniclemur replied to the thread Teensy 4.1 serial USB crash.
      I've attached the C++ code which just sends fixed patterns. It's quite intense as it doesn't attempt to limit the data rate (the actual data rate is much lower in practice), but it quickly demonstrates the USB serial lockup I've been having...
    • P
      paniclemur reacted to jmarsh's post in the thread Teensy 4.1 serial USB crash with Like Like.
      I would strongly recommend reading 5 bytes at a time (one complete packet) rather than reading as much as possible and then parsing it in chunks of 5. Otherwise there's likely to be a split packet due to usb transfer boundaries that will throw...
    • P
      paniclemur reacted to TomChiron's post in the thread Teensy 4.1 serial USB crash with Like Like.
      I would not expect problems with this amount of data over USB. However, cable ethernet could be more reliable which I would prefer. As I understand the USB port from the Teensy 4.1 is connected to the Raspberry Pi. So how exactly can you see...
    • P
      paniclemur replied to the thread Teensy 4.1 serial USB crash.
      Thanks for the suggestion. I gave it a go and implemented as you suggested, without a buffer or loop but unfortunately it still seems to have the same problem! Yes it's a good point about loosing sync. I did wonder about that and that's why I...
    • P
      paniclemur replied to the thread Teensy 4.1 serial USB crash.
      In terms of the Teensy, I know the loop is still running as I when I implement a 1 second blink in the loop, the LED carries on blinking, even after the USB dies. I also know that no data is being received as the USB serial port on the Raspberry...
    • P
      paniclemur replied to the thread Teensy 4.1 serial USB crash.
      Thanks for the tip Mark! Yes, good idea - I wrote a very basic test in C++ instead or Python to test, and had the same problem unfortunately on both Raspberry Pi and x64 platforms when I tested it. The problem seems to be caused by the...
    • P
      I'm working on a project with OctoWS2811 and a Teensy 4.1. I have a LED matrix running using 32 separate pins as outputs, each with a strip length of 300 LEDs. I'm sending packets of data over USB to the Teensy from a Python script on a Raspberry...
  • Loading…
  • Loading…
Back
Top