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

Search:

Type: Posts; User: liudr

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. T41 USBHost_T36 caused CRC error on an OUT packet

    I wonder what may have caused a CRC error. I was transmitting data that T41 received from PC to a device that T41 was hosting. The data was a complete packet of 512 bytes. The Beagle between T41 and...
  2. T41 USBHost_T36 cause of PID sequence error?

    I have this that Beagle USB 2.0 analyzer complains as PID sequence error:

    28667

    What I see is that the first OUT was done properly:
    OUT token
    DATA0 packet
    NYET response

    PING
  3. Replies
    5
    Views
    131

    Seems like if when teensy is held in "landscape"...

    Seems like if when teensy is held in "landscape" orientation like in your photo, the ferrite is vertical while the resistor is horizontal. So which one broke? I guess you can short the ferrite pads...
  4. Replies
    6
    Views
    161

    If you didn't upload some sort of sophisticated...

    If you didn't upload some sort of sophisticated code that made the pressing of the PROG button useless, then you may have destroyed your board with whatever you were trying to get us to critique that...
  5. Replies
    4
    Views
    240

    If everything is right, your regulator should...

    If everything is right, your regulator should output within specs but it's not. Touch your regulator with a finger tip. If it is warm, there' something wrong in your circuits. Unless you post enough...
  6. Thread: USB signal noise

    by liudr
    Replies
    10
    Views
    445

    ads1256 seems to require external reference...

    ads1256 seems to require external reference voltage, is that correct? If so, how are you providing this voltage? Also what is your adxl accelerometer's model number? There are many accelerators...
  7. Replies
    4
    Views
    240

    Hello, The regulator should output 3.3V, not...

    Hello,

    The regulator should output 3.3V, not 3.7V. How are you measuring this output voltage? Do you have a decent multimeter?
  8. I'm using teensyduino 1.55. Maybe this VBUS...

    I'm using teensyduino 1.55. Maybe this VBUS detection is not implemented? In usb_init():

    // TODO: only enable when VBUS detected
    // TODO: return to low power mode when VBUS removed
    // TODO:...
  9. How to detect USB device class port is disconnected from PC?

    I know this is not a common use case that I disconnect teensy from PC but suppose teensy is powered by a battery thus disconnecting it from PC won't shut it off. I want to know how to detect...
  10. Replies
    8
    Views
    125

    There is a missing understore:...

    There is a missing understore: usb_cdc2_line_rtsdtr instead of usb_cdc2line_rtsdtr. With the underscore, it works like the (SerialUSB1).
  11. Replies
    8
    Views
    125

    After a bit more reading, it seems that there is...

    After a bit more reading, it seems that there is this already in usb_serial.h so you can just use if(SerialUSB1) like if(Serial).


    operator bool() { return usb_configuration &&...
  12. Replies
    8
    Views
    125

    If I have some time I can test also. Most of my...

    If I have some time I can test also. Most of my teensy software has been heavily modified for my work so I have to find a mint copy first :)
  13. Replies
    8
    Views
    125

    Hello, This is a tricky thing to do. Here is...

    Hello,

    This is a tricky thing to do. Here is how you can use if(Serial) in the first place:

    operator bool() { return usb_configuration && (usb_cdc_line_rtsdtr & USB_SERIAL_DTR) &&...
  14. Replies
    2
    Views
    127

    Not only does the micromod has no PSRAM, it also...

    Not only does the micromod has no PSRAM, it also didn't bring out the pins to connect to PSRAM externally. Maybe same is true for ethernet. This makes micromod quite limited.
  15. Replies
    2
    Views
    127

    Teensy 4.1 pins 42-54 for micromod design

    I'm trying to design a board with micromod teensy to include both a PSRAM and sd card slots so I'm in need for the pins that these things use, 42-52.
    It seems that the m.2 connector's pins...
  16. Replies
    7
    Views
    245

    Write a test code to test your electronics. We...

    Write a test code to test your electronics. We don't know how the 12V may have damaged everything else. The very least, find a way for 12V to not be accidentally wired to a Teensy pin. This could...
  17. Maybe use mcp4725? The chip has i2c interface and...

    Maybe use mcp4725? The chip has i2c interface and is not hard to use even without a library. Here is a link:
    https://www.adafruit.com/product/935
  18. Thread: Box/Enclosure

    by liudr
    Replies
    2
    Views
    141

    It depends on which country or continent you live...

    It depends on which country or continent you live in/on. Here is an enclosure company based in USA:


    https://www.polycase.com/

    Lots of options even handheld boxes if you have drill and router...
  19. Replies
    6
    Views
    155

    If the tab completely covers the pad, you have to...

    If the tab completely covers the pad, you have to either use a heat gun or maybe have your iron on the tab for some extended amount of time to try to melt the solder under the tab. I might add a bit...
  20. Replies
    6
    Views
    155

    I just took a look at my LC. The microUSB has two...

    I just took a look at my LC. The microUSB has two surface tabs that can be soldered by hand. First you want to check the solder pads (2 for the tabs and 5 for the connection) on the board to make...
  21. Replies
    13
    Views
    266

    I'm not a drummer so what I suggest may be just...

    I'm not a drummer so what I suggest may be just wrong:

    Say you have 5 drums. Build each like you did with the single drum. Then under the middle drum, install a hub. So two left drums wire to...
  22. I guess there's the spec, then there's popular...

    I guess there's the spec, then there's popular hosts such as windows/nix/macos, then there's device manufacturers.

    Here's what I have on a square ipad stand hosting a receipt printer:
    10ms...
  23. Thanks. Yeah, a better way to add another case...

    Thanks. Yeah, a better way to add another case with some USB timer will be great but I didn't know how. Hope you find out what else may cause the issue and make a patch. I've heavily modified the...
  24. @Paul, Is it related to this issue? This...

    @Paul,

    Is it related to this issue? This causes issues to

    https://github.com/PaulStoffregen/USBHost_t36/issues/87

    Can you please share what delay command you used? Thanks.
  25. My suspicion is that the code running on keybow...

    My suspicion is that the code running on keybow causes some delay/blocking during boot so if you add some delay in teensy before it enumerates keybow, then keybow has completed initialization (could...
  26. Replies
    2
    Views
    431

    Thanks @mark. I think JLCPCB must have very large...

    Thanks @mark. I think JLCPCB must have very large rolls and may have pressed the non-framed stencils before shipping. Theirs are much flatter than osh stencil's.
  27. Replies
    2
    Views
    431

    WTF IS this board?

    The first image is from JLCPCB. When ordering stencils at JLCPCB, I've been scared by this image at times and have always hated it because it looks like my board file has got screwed up, from those...
  28. I tried to remove some simple thruhole components...

    I tried to remove some simple thruhole components with a soldering iron some decades ago and had very poor success. Kind of questioned whether I could learn soldering. It turned out the board was...
  29. In case you are interested,: Tacky flux:...

    In case you are interested,:

    Tacky flux:
    https://www.amazon.com/Chip-Quik-SGF991-10CC-Stained-Soldering/dp/B099XCWXX6/
  30. It is, difficult, to look at. While this turned...

    It is, difficult, to look at. While this turned out to be salvageable, you should do some more practice on scrap boards (broken electronics etc) before doing this again! To remove a connector, use...
  31. Thanks Paul! I'll avoid using DMA to access...

    Thanks Paul! I'll avoid using DMA to access PSRAM. What I want to do is to write some content into OUTbuf, then have the content sent to a USB device using a USBHost_t36 library driver I wrote, and...
  32. T4.1 PSRAM static allocation and copy content

    Just want to check whether I'm doing it right:

    I have an 8MB PSRAM from prjc that I soldered to my T4.1 smaller footprint. I plan to use the PSRAM as a large buffer so I don't need ext_malloc().
    ...
  33. This may help you stay with MEGA2560 for a bit...

    This may help you stay with MEGA2560 for a bit longer if you wish to pay the $33+SH price:

    https://www.rugged-circuits.com/new-products/quadram

    Do read the tech details if you want to get it:
    ...
  34. OK, you have the right expectation. It's not...

    OK, you have the right expectation. It's not impossible but very unlikely unless you have a lot of time, the right tools, and don't mind doing a lot of hard work. I don't know what setup you have and...
  35. Replies
    10
    Views
    211

    It's a very extensive project you're developing...

    It's a very extensive project you're developing and managing @paul and despite of my short time using teensy so far I, see an excellent project, platform, and community, so I'm just going to remind...
  36. Replies
    10
    Views
    211

    Great! You definitely went above and beyond of...

    Great! You definitely went above and beyond of merely asking for an answer. You took the information and went ahead with your own investigation, and you posted back your solution. Thanks! This was...
  37. Replies
    10
    Views
    211

    @paul I really wish you would allow a maximal of...

    @paul I really wish you would allow a maximal of 1920*1080 image size as most people have this resolution or higher on their monitors and could provide screen shots at this resolution, not the...
  38. Replies
    10
    Views
    211

    You need to provide a link to this adapter you...

    You need to provide a link to this adapter you got. Nobody knows exactly what you have. I have this one:

    https://www.amazon.com/Monoprice-Extender-CAT5E-Connection-150ft/dp/B003L14ZTC/

    This is...
  39. Replies
    7
    Views
    135

    I'm not familiar with the library you're using...

    I'm not familiar with the library you're using but I can provide some timing data/diagram of a 2-channel rotary encoder. It's not as symmetric as most theory diagrams picture them. Here is what I...
  40. Maybe you didn't have the right Zener diode. Or...

    Maybe you didn't have the right Zener diode. Or it could have been broken. Lower voltage Zener diodes can get damaged by static electricity if they are in non-antistatic bags. If you bought a 3.6V...
  41. So I am seriously considering running host mode...

    So I am seriously considering running host mode on OTG1 (instead of on OTG2) and device mode on OTG2 so I can have all 8 EPs to work with. This stems from drivers of devices I want to simulate. Some...
  42. So when successful, it took 0.1ms to go from set...

    So when successful, it took 0.1ms to go from set address to get dev desc. I'm suspecting that it WAS circuitpython running startup routines in the background that caused the device to respond too...
  43. Totally works! I also made wMaxPacketSize0...

    Totally works! I also made wMaxPacketSize0 dynamic depending on what I want to do.
  44. Replies
    32
    Views
    721

    I wish I had your optimism or skill level. I've...

    I wish I had your optimism or skill level. I've been designing boards for over a decade but on 2-layer boards so far. As I mentioned, I only know some things in theory. Hope you can get some...
  45. Replies
    32
    Views
    721

    Thanks @Paul. I think you answered my questions....

    Thanks @Paul. I think you answered my questions. I may be interested in a few 1062 and the smaller chips with bootloader. It's for one of the projects I've been bugging you guys with weird USB...
  46. Could you post your successful enumeration with...

    Could you post your successful enumeration with the 5-second delay? I am curious whether it is the rp2040 that is too slow to respond with USB requests when it starts up circuitpython and usb device....
  47. I'm not sure what took the same device so much...

    I'm not sure what took the same device so much longer to respond to Teensy than PC. The error was not the setup packet of "set address" that got stalled. The one after it got stalled. It's a request...
  48. Replies
    0
    Views
    79

    USB hardware support of LPM ECN?

    I am guessing the answer is no according to the spec sheet but just want a confirmation:
    Page 2203:


    I did a rough search of "LPM" and all of them came out of chapter 44 with FlexCAN. So no...
  49. I found this schematic diagram from an AVR...

    I found this schematic diagram from an AVR microcontroller. It may be easier to understand since the diodes are drawn almost in line. You can imagine the resistor on the right to external input and...
  50. 28178 Sorry the photo is a bit out of focus as...

    28178

    Sorry the photo is a bit out of focus as it's too close. You need one Zener diode of the appropriate voltage (3.3V or maybe 3.6V), and a resistor to limit current from your source. This...
Results 1 to 50 of 175
Page 1 of 4 1 2 3 4