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

Search:

Type: Posts; User: WMXZ

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    808
    Views
    19,477

    I only wanted to clarify the "d - first dump list...

    I only wanted to clarify the "d - first dump list of storages" option
    this prints out the relevant info of the index file, mtp uses to access the files.
    It is only useful during development and...
  2. Replies
    625
    Views
    56,853

    One application of MTP is to transfer files,...

    One application of MTP is to transfer files, while the Teensy is not accessible, so disk access should IMO be optimised.
    If this can be done using info from filesystem, so better. Yes, FS.h should...
  3. Replies
    625
    Views
    56,853

    Well, I only adapted the original code to my...

    Well, I only adapted the original code to my needs and made it available.
    I understand that Paul is interested to integrate it at some time, but he seems to be busy with other (hopefully pleasant)...
  4. Replies
    14
    Views
    238

    The 2.9 ms is result of acquisition buffer (128...

    The 2.9 ms is result of acquisition buffer (128 samples) and sampling rate (44.1 kHz) so you must change one of the two values to change the delay.
    This requires changing some basic parameters. It...
  5. Replies
    14
    Views
    238

    They cannot be 180 deg out of phase. there is a...

    They cannot be 180 deg out of phase. there is a fixed travel time through the audio library
    Output is NEVER without delay to input.

    AFAIK
    I2S-input: data are buffered for 128 samples (2.9 ms...
  6. Replies
    14
    Views
    238

    the way it is wired now, connect audio signal to...

    the way it is wired now, connect audio signal to both line in and oscilloscope channel 1 to ,say, left and channel 2 to right
    you could simplify, by connecting both amp inputs to same i2s input...
  7. Replies
    14
    Views
    238

    sorry about formating here is the audio code ...

    sorry about formating
    here is the audio code

    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>

    // GUItool: begin automatically generated code
  8. Replies
    14
    Views
    238

    no, I was suggesting i2s ->mixer (+1) -> I2S...

    no, I was suggesting
    i2s ->mixer (+1) -> I2S left
    |-> mixer (-1) -> I2S right
    so left and right path have same internal delays
  9. Replies
    14
    Views
    238

    if you insert an audio object then you have to...

    if you insert an audio object then you have to consider a 128 sample delay.
    So, insert two mixers in parallel one with +1 and the other with -1, then you should get the desired effect
  10. Replies
    21
    Views
    336

    the SPI speed and the CPU speed are total...

    the SPI speed and the CPU speed are total different clocks
    .
    However, if you use code where SPI clock speed is derived from CPU clock then you may run into issues.
    If this happens in old low...
  11. Replies
    21
    Views
    336

    use SPI1.beginTransaction(SPISettings(4'000'000,...

    use
    SPI1.beginTransaction(SPISettings(4'000'000, MSBFIRST, SPI_MODE0));

    spi commands

    SPI1.endTransaction();

    or similar to control SPI speed (here 4 MHz)
  12. Replies
    21
    Views
    336

    which library you are using? could not find a...

    which library you are using?
    could not find a MPU9250 for SPI that is compatible with your code
  13. Replies
    3
    Views
    103

    I use 5 lines into my waterproof housing ...

    I use 5 lines into my waterproof housing
    Voltage, Ground, USB D+, USB D-, Program line
    this allows me to reprogram Teensy at all circumstances.
  14. Yes but SE A10,A11 are Differential (it is...

    Yes but SE
    A10,A11 are Differential (it is clearly written)
  15. Replies
    625
    Views
    56,853

    I corrected the Readme file (thanks for pointing...

    I corrected the Readme file (thanks for pointing out)

    re TyCommander, I'm not using this, so I cannot comment
    If you update boards.txt (modifications for teensy_avr) then there should be two...
  16. Replies
    5
    Views
    139

    USB mode is fixed at compile time. You can use...

    USB mode is fixed at compile time.
    You can use MTP with Serial if you install MTP from https://github.com/WMXZ-EU/MTP_t4 and follow instructions
  17. Replies
    625
    Views
    56,853

    I had that too, but having storageID above 16 bit...

    I had that too, but having storageID above 16 bit did not change anything.
    I know it violates the document, but coding was simpler.

    one events:
    notifying every new file, for me is not an option,...
  18. Replies
    625
    Views
    56,853

    maybe one needs an ISR also for events. don't...

    maybe one needs an ISR also for events. don't think TX ISR is called.
  19. Replies
    625
    Views
    56,853

    @KurtE On T3.x, my interpretation was that after...

    @KurtE
    On T3.x, my interpretation was that after malloc you need also a free, but I may be wrong.
    So I use always the same buffer for multiple events, assuming that I will not send multiple events...
  20. Replies
    625
    Views
    56,853

    BTW, My Github has also a tested T3.6 version...

    BTW,
    My Github has also a tested T3.6 version on events included (in MTP.cpp)
    I would keep event handling outside cores
    I did a couple of days ago a PR on teensy3/usb_desc.h to have tx events,...
  21. Replies
    183
    Views
    9,737

    MTP per se does not need Serial connection, but...

    MTP per se does not need Serial connection, but MTP is usually integrated in other programs that need serial connections.

    Seremu without Arduino monitor is a little bit complicated.
    Consider...
  22. Replies
    625
    Views
    56,853

    @KurtE, Yes I'm following your modifications and...

    @KurtE,
    Yes I'm following your modifications and try them out.
    There are couple of things I may have a different starting point, so I'm curious to see how they work out.
    So please go ahead with...
  23. Replies
    625
    Views
    56,853

    That is my observation also. F5 seems to be...

    That is my observation also.
    F5 seems to be necessary
  24. Replies
    4
    Views
    127

    and 3 characters after the "."

    and 3 characters after the "."
  25. Teensy4.x are 3.3V I/O so do do not want a board...

    Teensy4.x are 3.3V I/O so do do not want a board that is made to interface with a 5V board.
    5V in Teensy4 pins may kill these pins
  26. Replies
    20
    Views
    2,445

    what about extmem_malloc(size) as used in...

    what about

    extmem_malloc(size)
    as used in LittleFS_RAM of LittleFS library?
  27. Replies
    625
    Views
    56,853

    Chip, mtp-test.ino does work now with T3.6 to...

    Chip,
    mtp-test.ino does work now with T3.6
    to use USB_MTPDISK_SERIAL you need to copy the desc.h parts into desc.h cores files
    if you prefer to use old mtpdisk (seremu) you should edit desc.h to...
  28. Replies
    625
    Views
    56,853

    Chip, Have not integrated yet events to T3.6....

    Chip,
    Have not integrated yet events to T3.6.
    I'm still testing with T4.1 (my real application runs on T4.1)
    T3.6 needs own usb interface so it needs a mind-change to get integrated.
    otherwise it...
  29. Replies
    18
    Views
    497

    Chip you mean N_k = (Q * f_s) /f_k anyhow,...

    Chip
    you mean
    N_k = (Q * f_s) /f_k

    anyhow, it does not matter, as one can use FFT to approximate the spectral resolution (with summing of bins), then one can sum the temporal bins to...
  30. Replies
    18
    Views
    497

    AFAIK N_k * f_k = Q*f_s N_k window length...

    AFAIK
    N_k * f_k = Q*f_s

    N_k window length
    f_k center frequency
    f_s sampling frequency

    see e.g. https://en.wikipedia.org/wiki/Constant-Q_transform
    Obviously, one needs to read a little bit...
  31. Replies
    18
    Views
    497

    Chip, I would not call it "approximation to...

    Chip,
    I would not call it "approximation to constant-Q", as a simple logarithmic frequency scale (logarithmic summing frequency bins) is equivalent to a logarithmic Q.
    In how far logarithmic...
  32. Replies
    18
    Views
    497

    The OP and title asks about constant Q and not...

    The OP and title asks about constant Q and not "logarithmic" spectrograms.
    constant Q indicates "logarithmic" spacing of frequencies AND therefore also logarithmic changes in window size.
    summing...
  33. Replies
    18
    Views
    497

    As Q is related to the time-frequency product you...

    As Q is related to the time-frequency product you "only" need to implement 96 DFTs, each with own window size.
    Edit: Not sure is there is a DFT object in Audio library, but you can easily write one...
  34. Replies
    625
    Views
    56,853

    @KurtE Re storageID, I knew this and have...

    @KurtE
    Re storageID, I knew this and have thought to separate physical and logical storage, but in the end I let everything as 1 physical storage (0<<16) and consider all storage as logical. I know...
  35. Replies
    625
    Views
    56,853

    After commenting to @mborgerson, here a first...

    After commenting to @mborgerson, here a first success
    I succeeded to provoke a PC response using an event.
    Using a device reset event PC reopened a new session. I updated the MTP github.
    in MTP.h...
  36. Replies
    625
    Views
    56,853

    Correct, If PC initiated a session, and you open...

    Correct, If PC initiated a session, and you open a directory in file explorer MTP responder tells MTP initiator (PC), how many files are in this directory. If Teensy the writes additional files, PC...
  37. Replies
    13
    Views
    365

    I do not understand. Does the ReadWrite.ino...

    I do not understand.
    Does the ReadWrite.ino example in SD library not work?
    Is it not the purpose of SD library that you do NOT interface directly with the SdFat library?
    The OP asked for a simple...
  38. Replies
    625
    Views
    56,853

    Let me summarize the discussion as I see it. ...

    Let me summarize the discussion as I see it.

    Starting point:
    MTP was developed to retrieve files from portable devices and at the same time to store files on such devices.
    It was never designed...
  39. You may start with...

    You may start with
    https://forum.pjrc.com/threads/65235-Basic-I2S-Input-Example-for-T4-x
  40. Replies
    625
    Views
    56,853

    This is an operation from within the Teensy. IMO,...

    This is an operation from within the Teensy. IMO, what is needed an operation on PC to reset session.
    I have good results with using the device manager, but as I said, I hear that others have...
  41. If you are not deploying it in coastal areas that...

    If you are not deploying it in coastal areas that gets flooded within the next century.
  42. Replies
    625
    Views
    56,853

    @KurtE, A lot of suggestions. Not sure if it is...

    @KurtE,
    A lot of suggestions.
    Not sure if it is useful to map FS with MTP (or I misundertand).
    The main program must know the disks attached to system for logging, and the MTP is not talking to...
  43. Replies
    4
    Views
    171

    Personally, I have no experience with Ethernet,...

    Personally, I have no experience with Ethernet, but I can imagine that others on this forum would appreciate a picture of your setup. Not sure also if ethernet kits from e-bay are suited for T4.1....
  44. The following snippet does not crash ...

    The following snippet does not crash

    uint32_t data;
    int ndat = file.read(&data,4);
    if(ndat<0) Serial.println("SD error");


    OK, a return of -1 indicated SD read failure, which may be...
  45. Replies
    26
    Views
    5,552

    I'm pretty sure that nobody on this forum is...

    I'm pretty sure that nobody on this forum is experimenting with intentionally bricking a teensy.
    So you will not get an affirmative answer, but we all are waiting that you tell us that this...
  46. Replies
    0
    Views
    94

    Basic I2S Input Example for T4.x

    The following code is a simple I2S input example that runs on T4.1.
    It can be configured to have multi channel TDM input for ether 16 or 32 bit for (nearly) arbitrary sampling frequency.
    It runs...
  47. Replies
    3
    Views
    130

    on this forum, threads are not deleted. And maybe...

    on this forum, threads are not deleted. And maybe you give also the solution to the OP to help others
  48. Replies
    22
    Views
    507

    Better not to interfere with DMA that is running...

    Better not to interfere with DMA that is running in parallel,
  49. Obviously, you will get better answers from...

    Obviously, you will get better answers from Microsoft, why their plugin does not work on a Mac, or better ask Apple, why VSCode + Arduino plugins do not work on MAC.

    To answer directly, I have not...
  50. Replies
    22
    Views
    507

    In order to have another example to do I2S...

    In order to have another example to do I2S acquisition (I'm not doing I2S output), here is what I extracted from my actual application




    #define FSAMP 96000
    #define NSAMP 128

    // assume to...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4