Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • vjmuzik's Avatar
    Yesterday, 11:37 PM
    The pins I would like to see is definitely Serial8, usb host port like a T3.6 offers, and I would love native Ethernet if it’s a possibility. To coincide with the native Ethernet I would like the option of adding an...
    8 replies | 52 view(s)
  • vjmuzik's Avatar
    Yesterday, 05:24 PM
    Yes the adapter has auto crossover detection, there is a parameter for a static IP address for the DHCP service as well as an autoip service which is the one that should be used for direct connection between devices. I...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-15-2019, 12:39 PM
    Here is a link to the current library for this: https://github.com/felis/UHS30 Link to forum page: https://forum.pjrc.com/threads/28173-Teensy-3-x-NATIVE-USB-HOST-PREVIEW-AVAILABLE Of note, Teensy 3.2 only has one USB...
    5 replies | 60 view(s)
  • vjmuzik's Avatar
    10-14-2019, 10:59 PM
    There is a function that adds the services to a polling list that gets called from the usbthread, all of that is handled by the init function for the service you are trying to add. The specific command is...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-14-2019, 09:50 PM
    There is definitely a learning curve to FNET being that there really isn’t any documentation available on how to do certain things like create your own sockets. The author of FNET just tells people to use one of the...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-13-2019, 08:58 PM
    Adafruit has their own port of the Teensy Audio Library for such purposes: https://learn.adafruit.com/synthesizer-design-tool/overview
    3 replies | 71 view(s)
  • vjmuzik's Avatar
    10-13-2019, 08:51 PM
    There’s certainly some surfaces that can be bought cheaper than you can build one, some of the more specialized ones like a Euphonix controller can be built for cheaper since they are so overpriced to begin with. Half...
    44 replies | 10971 view(s)
  • vjmuzik's Avatar
    10-13-2019, 10:26 AM
    I definitely want to see how well the gigabit Ethernet on the 1170 performs if we have access to it, I would like for it to be available directly onboard so I don’t lose I/O pins just to support Ethernet, but I...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-13-2019, 10:15 AM
    The original library does have direct support, but that support would have to be rewritten to work with Teensyduino, but we don’t have to use the original libraries code to use the hardware. You can take the existing...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-12-2019, 11:34 PM
    Looks like the register values are not reading back what it expects, the product ID is right but the revision and Manufacturer ID are not. Here is what the library expects the values to be: if...
    23 replies | 235 view(s)
  • vjmuzik's Avatar
    10-12-2019, 10:37 PM
    Since you have a relay on hand already I say test with that and see how it performs, it should perform well since itís a direct connection through a relay and not flowing through a transistor, it takes out some of the...
    2 replies | 101 view(s)
  • vjmuzik's Avatar
    10-12-2019, 10:15 AM
    Exactly correct.
    28 replies | 222 view(s)
  • vjmuzik's Avatar
    10-12-2019, 09:48 AM
    There’s no way to specify the number of LEDs per pin, but if you just start the object with the max LEDs that one pin has there’s nothing stopping you from using less LEDs on the other pins. You just have to make sure...
    28 replies | 222 view(s)
  • vjmuzik's Avatar
    10-12-2019, 09:28 AM
    Yes two of those should be fine, those are the same model that are on the OctoWS2811 adapter so you can guarantee that they will work.
    28 replies | 222 view(s)
  • vjmuzik's Avatar
    10-12-2019, 09:23 AM
    Also I believe T4.0 isn’t yet supported with the OctoWS2811 library and as the name suggests it is only for 8 pins which are hard coded into the library, so you would either have to port the library or just stick with...
    28 replies | 222 view(s)
  • vjmuzik's Avatar
    10-12-2019, 09:13 AM
    Octo2811 has nothing to do with level shifting.
    28 replies | 222 view(s)
  • vjmuzik's Avatar
    10-12-2019, 09:04 AM
    I’m not sure about dma support, but the FastLED library can use the T4.0’s 16 bit port for output: https://github.com/FastLED/FastLED/wiki/Parallel-Output
    28 replies | 222 view(s)
  • vjmuzik's Avatar
    10-12-2019, 08:57 AM
    Any buffer style chip can be used for uni direction level shifting, octal buffers are pretty common and I’ve used them for level shifting. Just power them with 5v and I believe most of them have high level signals...
    28 replies | 222 view(s)
  • vjmuzik's Avatar
    10-11-2019, 08:19 PM
    Those are the official names taken from the reference manual as far as I can tell and it looks like the very first letter is what port they are, so the 16 bit port is port A. Like I say, it's a little confusing, that's...
    3 replies | 55 view(s)
  • vjmuzik's Avatar
    10-11-2019, 07:43 PM
    I prefer to look at the core_pins.h file to find the mappings, it seems a lot clearer to me than looking at the schematic. If you look here, there is actually a 16 bit port available with no conflict for SPI or the SD...
    3 replies | 55 view(s)
  • vjmuzik's Avatar
    10-11-2019, 07:23 PM
    Windows could’ve always supported since obviously other “custom” drivers could do it at the time, I suppose now in Windows 10 it looks like it is supported natively, but that is a simple feature that should’ve been over...
    14 replies | 90 view(s)
  • vjmuzik's Avatar
    10-11-2019, 07:14 PM
    I figured it would probably fail for the T3.6 with the current buffer sizes, the buffers can be lowered you just won’t get the same speeds, not to mention that from test the T3.6 seemed to never get the same speeds even...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-11-2019, 01:21 PM
    Oddly enough packing the bytes didn't actually make it any faster, reason being that it has to use the callback timer to say when to send a message if the buffers not full and that timer has to be as short as possible...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-11-2019, 09:25 AM
    Technically a Teensy 3.2 can be a USB host but with only one USB port you are limited to what you can do, the USB micro is OTG capable and I know someone did some work for the host support, but it’s not built into...
    7 replies | 128 view(s)
  • vjmuzik's Avatar
    10-11-2019, 09:20 AM
    If my knowledge is correct then you should be able to do it as long as your resistor value is high enough to limit the current to less than what the Teensy can sink. I’ve done this with external chips before that had...
    1 replies | 49 view(s)
  • vjmuzik's Avatar
    10-11-2019, 07:09 AM
    Yeah, that’s pretty much what I would expect the numbers to be with the current code, UDP will always be faster than TCP there’s nothing I can do about that. I may be able to squeeze a little more speed out of TCP...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-11-2019, 02:41 AM
    I didn’t understand what Processing was, now that I do, I meant you could run your Arduino sketch on the Teensy instead of using the Teensy to transmit the serial messages to an Arduino. Which is probably already what...
    5 replies | 40 view(s)
  • vjmuzik's Avatar
    10-11-2019, 12:18 AM
    You can also run your whole processing sketch on the Teensy instead of just forwarding the messages to a separate Arduino.
    5 replies | 40 view(s)
  • vjmuzik's Avatar
    10-11-2019, 12:16 AM
    Strictly speaking a Teensy is completely different from how a standard USB to UART adapter works, you can program it to do the same function however. To program a Teensy you don’t have to put it into any kind of special...
    5 replies | 40 view(s)
  • vjmuzik's Avatar
    10-10-2019, 10:08 PM
    I just prefer MacOS over Windows, I use both almost daily and the workflow is just so much better for me, not to mention Windows just seems to lack the ease of use of stuff that Mac has had for years such as multi...
    14 replies | 90 view(s)
  • vjmuzik's Avatar
    10-10-2019, 08:15 PM
    All USB interfaces that are offered on other Teensy’s are going to be coming to the Teensy 4, Paul is working on a lot of software right now to bring it up to par with other Teensy’s. I’m not sure what the road map...
    1 replies | 66 view(s)
  • vjmuzik's Avatar
    10-10-2019, 08:11 PM
    USB Ethernet is starting to be pretty promising, it’s at least a whole lot faster than the wiznet modules, further testing is still being done, but if you need to go that route it’s at least viable for high speeds.
    8 replies | 235 view(s)
  • vjmuzik's Avatar
    10-10-2019, 07:15 PM
    My take on it is that one half is more optimized than the other allowing for faster code execution/memory access, that’s probably wrong on all accounts, but that’s how I choose to understand it right now.
    5 replies | 72 view(s)
  • vjmuzik's Avatar
    10-10-2019, 09:48 AM
    Maybe the string isn’t be null terminated properly if the there’s an exact amount in the buffer?
    5 replies | 79 view(s)
  • vjmuzik's Avatar
    10-10-2019, 09:32 AM
    I’m pretty sure this makes sense since the default serial buffer size is 64, I believe the number can be easily edited in one of the Teensy core files. So anything over 64 would be read in multiples instead of one long...
    5 replies | 79 view(s)
  • vjmuzik's Avatar
    10-10-2019, 08:54 AM
    I did this a while back: https://forum.pjrc.com/threads/50043-Configurable-usbMIDI-Port-Names I havenít updated it since I posted it, I donít know if anything changed in the original file since I did either, but this...
    47 replies | 23342 view(s)
  • vjmuzik's Avatar
    10-10-2019, 08:48 AM
    I think I just need a better router, it’s only the WiFi that goes out, the wired ports still work it just decides to not want to communicate properly.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-10-2019, 07:53 AM
    Use the flood command sparingly, I’ve DDOSed my router again.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-10-2019, 07:48 AM
    Alright I found out about the ping flood command which works in the native MacOS terminal and here is the results that are more inline with what I would expect, besides a couple of lost packets the numbers look good:...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-10-2019, 07:39 AM
    Yeah Teensy to Teensy testing would definitely be interesting.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-10-2019, 07:28 AM
    Ground should never be anything above 0v, that being said connecting the PSU ground to Teensy ground is not an issue and can be directly connected as long as you haven't shorted anything that's causing ground to be 12v.
    28 replies | 222 view(s)
  • vjmuzik's Avatar
    10-10-2019, 07:22 AM
    I'm not sure what's going on with psping, but my numbers certainly don't add up to what it's saying. I'm running psping over WiFi so my average ping is 4ms and I took it off quiet mode to verify that, most are around...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-10-2019, 06:35 AM
    I still need to work on making the transmit make better use of the buffers by packing multiple messages into one buffer instead of queueing every message into it's own buffer, I need to match the transmit buffer size...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-10-2019, 06:22 AM
    Alright, I've pulled through and fixed the buffers so now 16k receive buffer works, I'm not sure if over 16k works though, I tried 32k first and that didn't work so I just went with 16k. From a short test it looks like...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-10-2019, 03:47 AM
    Strictly speaking I believe any device can technically use the driver you would just have to insert the VID and PID of the desired device into it since to my knowledge it is class compliant, but it is only preprogrammed...
    14 replies | 90 view(s)
  • vjmuzik's Avatar
    10-10-2019, 02:45 AM
    When compared to the MSC driver, that one has no problems because it requests an absolute read size so what is returned is always what was requested and it's not always reading. Mine has to always be reading and the...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-10-2019, 02:38 AM
    The USB receive buffer, I mean the speed seems pretty fine with 2k buffers right now, but I feel like it may be able to be increased or at least offer better USB bandwidth for other devices probably, but for some reason...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-10-2019, 01:25 AM
    Of note, the BCR2000 is not multi client without a driver, this picture is included with their driver for the device as a reference:
    14 replies | 90 view(s)
  • vjmuzik's Avatar
    10-10-2019, 01:17 AM
    I want to increase the buffer size from 2k but no matter what I do I always get the receive errors for no reason, literally just an empty buffer and I can't figure out why that is.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-10-2019, 01:10 AM
    Yeah I don't know what happened to ping, I don't think I've made any changes that should've caused it and yet it is an issue that needs fixed.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-10-2019, 12:06 AM
    The best I can tell about the compile times is it has to do with the error from Arduino 1.8.10 where it thinks there is multiple libraries when there's not, so every time it recompiles it doesn't take the cache from the...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-09-2019, 11:26 PM
    While those are a feature of the chip I don’t believe all or any of the necessary pins are broken out to do those. I think in the thread about requested features of a future Teensy someone suggested those pins be...
    2 replies | 95 view(s)
  • vjmuzik's Avatar
    10-09-2019, 10:47 PM
    I haven’t tested at the high speeds since I’ve yet to get heat sinks but I know my laptop ports go up to 2 amps so I’m curious if it would work or not for me without a separate hub.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-09-2019, 09:06 PM
    Do your USB ports on your computer only supply 500ma?
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-09-2019, 09:00 PM
    Ah, so it's using too much current to be bus powered from the Teensy 4.0, makes sense now why it's only at high speeds since the Teensy draws more current.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-09-2019, 08:29 PM
    Looks like at some point Windows 10 added support for it, but I don't know how many apps have switched to the new API as it probably breaks backward compatibility. One great feature of the new API is that it is...
    14 replies | 90 view(s)
  • vjmuzik's Avatar
    10-09-2019, 07:53 PM
    This is the last lines of code that runs before it doesn't do anything, it calls the first sequence in the setup process of 65 total, after one is sent it has to wait until the control callback gets called to signify it...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-09-2019, 07:01 PM
    My only guess is maybe some registers need tweaking in the USB host code at higher clock speeds, it makes it through the device claim and then it calls the first control transfer, but it never completes so the control...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-09-2019, 06:54 PM
    So it looks like the first queue control transfer doesn’t complete so it never goes anywhere, oddly enough the T3.6 would get stuck there sometimes as well when I first uploaded new code without a power cycle and I...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-09-2019, 06:48 PM
    As far as I can tell they need their own Windows driver to work as multi client being that the factory one doesn’t allow it so it wouldn’t be class-compliant.
    14 replies | 90 view(s)
  • vjmuzik's Avatar
    10-09-2019, 05:27 PM
    Teensy MIDI is class-compliant, meaning it uses whatever drivers the OS has by default. Thus the issue isn’t with Teensy itself it’s an issue with the Windows usbMIDI driver, I can confirm that this isn’t an issue in...
    14 replies | 90 view(s)
  • vjmuzik's Avatar
    10-09-2019, 05:04 PM
    Likely it’s getting caught up somewhere in the initialization phase when it has to send all the queue controls one after the other, if you turn on the USBHOST_PRINT_DEBUG in the USBHost_t36.h file you can see at what...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-09-2019, 09:17 AM
    I still don’t know what happened to ping and the transfer speeds are a little skewed when you don’t transfer a lot of data at once because there is a little delay at the start and end of a stream of messages that’s why...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-09-2019, 06:02 AM
    The only way I can think of would be to setup a NTP server with the Teensy, I don't think the current Ethernet library has any examples of this, just an NTP client. It would depend on your OS but I don't know if any OS...
    4 replies | 97 view(s)
  • vjmuzik's Avatar
    10-09-2019, 05:53 AM
    The circuit is originally from an Uptown System 990 that came with our console built in the early 90's, it's pretty old technology, but nothing compares to the smoothness that was achieved with it. They used 8051...
    44 replies | 10971 view(s)
  • vjmuzik's Avatar
    10-09-2019, 05:08 AM
    Ok so I added an experimental method that seems to kind of work, it only gets called when the all the queue transmit buffers are full but it lets it get stuck in a while loop that just calls myusb.Task() from the...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-09-2019, 03:15 AM
    Looks like the error appears because you used main() instead of setup() and loop(). That’s not normally supported in Arduino, but it looks like it just so happened to be supported for the T3.6 and since it’s not normal...
    59 replies | 1889 view(s)
  • vjmuzik's Avatar
    10-09-2019, 01:41 AM
    The only thing that could be better about Gerritís design is not using PWM to control the fader motors. To offer a solution to that Iím going to be working on drawing up a schematic from this board: This controls the...
    44 replies | 10971 view(s)
  • vjmuzik's Avatar
    10-09-2019, 01:15 AM
    I think it’s the way you lock MSC while waiting for the USB transfer to complete, it appears to me like it only triggers if the previous transfer wasn’t complete before it sends the next one out. Which probably works...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-08-2019, 11:57 PM
    If WiFi is going to be option or at least available as an addon board it may be helpful to breakout both SDIO ports so one can be used for a WiFi chip and the other for an SD card.
    58 replies | 1819 view(s)
  • vjmuzik's Avatar
    10-07-2019, 10:25 PM
    Yeah that makes sense, not to mention the TCP buffer size let’s it transmit more messages before it stops and waits for an acknowledge message from the computer which is where the speed increase is really coming from in...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-07-2019, 09:06 PM
    Ok so like I've said before, bigger buffers = more speed, I've been playing around with the TCP buffer size and the results speak for themselves, but that comes at the increase of RAM usage so there is a tradeoff to be...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-07-2019, 08:09 PM
    I'm not sure how wwatson's MSC driver is able to wait until the data transfer completes, if I try to do it the same way he did it just locks forever and never frees up. Essentially I will have to have a way to do this...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-07-2019, 09:27 AM
    I can't tell where latency is being introduced, based on the timestamps in the serial monitor ping replies are being queued at least within the same millisecond as receiving them so something isn't adding up somewhere....
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-07-2019, 08:16 AM
    In other news, with the new fixes I can now ping up to 8184 bytes which is the max the terminal lets me send so at least that works now.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-07-2019, 08:13 AM
    Could the speed be tied to F_BUS_ACTUAL since that doesn't increase with the CPU speed like in previous versions?
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-07-2019, 07:50 AM
    I’ll have to rig up a fan to test at the higher clock speeds and see if it’s anything in my driver. Do you know if other usb devices work at the higher speeds?
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-07-2019, 07:47 AM
    I’m not sure about the latency increase, there shouldn’t be that much of a difference between previous versions and this new fix. I don’t think the way I’m cycling buffers has any kind of impact, at least not that much...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-07-2019, 07:11 AM
    So doing 100 messages of 8192 bytes with TCP I get about 9.1Mbit/sec pretty consistent and doing the same over UDP I get about 300Mbit/sec, so at least we aren't being crippled by USB speeds.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-07-2019, 07:08 AM
    Alright I found and fixed the actual issue, so the problem was that using one transmit buffer wasn't enough since before the USB message would be sent the buffer would start to be overwritten by the next message and end...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-07-2019, 06:07 AM
    I'm working on modifying some of the code from the usb serial driver so it actually uses the full queue buffer when it tries to send a lot of data instead writing a bunch of small buffers.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-07-2019, 03:57 AM
    Alright so I found out what was causing the transmit window size to be wrong, however that turned out to not fix the issue, but I did find what is causing the issue. The issue is something I thought to have fixed except...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-07-2019, 01:14 AM
    So there is some kind of bug regarding TCP transmit window size which is causing the speed to be diminished. The window size is supposed to be the same size as your buffer, but it’s defaulting to 2048 instead of the...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-06-2019, 03:10 AM
    Currently the only supported usb types are serial and rawHID is coming next and I believe it’s there in the new beta version, but just for testing right now. Other usb types are in the works, but some more pressing...
    3 replies | 91 view(s)
  • vjmuzik's Avatar
    10-04-2019, 11:15 PM
    Good, at least nothings broken so far.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-04-2019, 11:08 PM
    Are you using the newest version of TeensyThreads or the first one that supported T4.0? The first one had a typo that didn’t let it compile for T3.6 that he fixed in the newest update.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-04-2019, 09:54 AM
    I mean it is about to hit sunrise in the next hour for me so I would say it’s been all night :)
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-04-2019, 09:44 AM
    I shouldn’t have any differences locally, I’m still running the latest versions that are on GitHub. My time zone is UTC-4, I just happen to be up at all hours of the night.
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-04-2019, 09:25 AM
    Yeah, I'm getting a pretty consistent 4Mbit/sec 05:22:13.841 -> Starting benchtx... 05:22:13.841 -> Benchmark client started. 05:22:13.841 -> Protocol: TCP 05:22:13.841 -> Remote IP Addr: 192.168.0.2 05:22:13.841...
    271 replies | 2398 view(s)
  • vjmuzik's Avatar
    10-04-2019, 09:03 AM
    I was getting upwards of 7Mbit/sec on my TCP test, average of 2-4Mbit/sec.
    271 replies | 2398 view(s)
More Activity
About vjmuzik

Basic Information

About vjmuzik
Location:
Florida

Statistics


Total Posts
Total Posts
342
Posts Per Day
0.38
Last Post
Pins to bring out on a hypothetical larger Teensy4 Yesterday 11:37 PM
General Information
Last Activity
Today 02:59 AM
Join Date
04-22-2017