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.02 seconds.

  1. Replies
    24
    Views
    350

    Yes, that was the problem. w is declared uint16_t...

    Yes, that was the problem. w is declared uint16_t so instead of 240 there were 32768 iterations (or a factor of 136)
  2. Replies
    24
    Views
    350

    I would agree on bad (too quickly developed) test...

    I would agree on bad (too quickly developed) test program (I should have known it better)
    BUT
    I had an issue with parallel ILI9341
    that was too slow with while loop and that I could speed-up with...
  3. Replies
    24
    Views
    350

    Talking about efficiency A for loop can be about...

    Talking about efficiency
    A for loop can be about 100 times faster than a while as shown next

    #define BUFFER_SIZE 1024

    uint32_t buffer[BUFFER_SIZE];

    void setup() {
    uint32_t *buffer_ptr =...
  4. Ops, I got the ACQ selection wrong in config.h ...

    Ops, I got the ACQ selection wrong in config.h
    it should read

    #define ACQ _I2S_32_MONO
    note the leading underscore
  5. Replies
    14
    Views
    157

    what I mean is that you could replace ...

    what I mean is that you could replace

    void attGAIN(uint8_t att)
    { uint16_t input_gain=AudioControlSGTL5000::read(reg);
    write(reg, (input_gain << 4) | input_gain | (att & 1)...
  6. Replies
    14
    Views
    157

    In your case, there is a modify pre-programmed in...

    In your case, there is a modify pre-programmed in the base class that does what you did.
  7. Replies
    14
    Views
    157

    OK, I see, the symbols are only defined in the...

    OK, I see, the symbols are only defined in the cpp file.
    so better solution would be

    #include "control_sgtl5000.h"
    #define CHIP_ANA_ADC_CTRL 0x0020

    class mSGTL5000: public...
  8. Replies
    14
    Views
    157

    Did you try with include file only? on Arduino?...

    Did you try with include file only? on Arduino?
    IMO, including the whole code is only necessary if the audio library is not compiled.
    If you include the implementation (.cpp) than you may get...
  9. Replies
    14
    Views
    157

    maybe the following could work in the sketch...

    maybe the following could work

    in the sketch (.ino) file you add the following code
    (without changing the audio library)



    #include "control_sgtl5000.h"

    class mSGTL5000: public...
  10. Replies
    14
    Views
    157

    modify "control_sgtl5000.h" to read bool...

    modify "control_sgtl5000.h"
    to read

    bool lineInLevel(uint8_t n) { return lineInLevel(n, n); }
    bool lineInLevel(uint8_t left, uint8_t right) {return lineInLevel(left, right, 0);}
    bool...
  11. I modified the code on Github accordingly

    I modified the code on Github accordingly
  12. adding: Even listening to, or intercepting...

    adding: Even listening to, or intercepting non-public transmissions may be illegal and in particular cases may get you in trouble.
    and interfering means also publishing frequencies and content of...
  13. Delayed start was not implemented yet (Wiki was...

    Delayed start was not implemented yet (Wiki was more complete)
    you can simply replace in myApp.cpp

    // if pin3 is connected to GND enter menu mode
    int ret;
    if(!digitalReadFast(3))
    {...
  14. cannot confirm this. here what I got 25384

    cannot confirm this. here what I got
    25384
  15. You can keep all cpp files and only create an...

    You can keep all cpp files and only create an empty .ino file with the same name as the sketch folder. this will allow compilation under Arduino IDE.
  16. I will look into this, but can report only...

    I will look into this, but can report only tomorrow (system must run over midnight!)
  17. and what is the timestamp of the last file?

    and what is the timestamp of the last file?
  18. There is nothing in the program that limits the...

    There is nothing in the program that limits the acquisition to one day.
    Before I go into source code, can you confirm that pin3 is NOT connected to ground?
  19. The default Tx settings (same as in quoted file)...

    The default Tx settings (same as in quoted file) are for continuous recordings 0 to 24.
    recording is always between T1 and T2 and between T3 an T4.

    in addition to this you can schedule a duty...
  20. upgrading to TD1.54 will indeed improve SD write...

    upgrading to TD1.54 will indeed improve SD write performance, especially when formatted with exFAT.
    However, according to uSD specifications, you must expect (infrequent) delays up to well over 150...
  21. Replies
    9
    Views
    162

    void AudioRecordQueue::clear(void) { uint32_t...

    void AudioRecordQueue::clear(void)
    {
    uint32_t t;

    if (userblock) {
    release(userblock);
    userblock = NULL;
    }
    t = tail;
    while (t != head) {
  22. Replies
    9
    Views
    162

    if (blocks == 0) { queue1.readBuffer();...

    if (blocks == 0) {
    queue1.readBuffer();
    queue1.freeBuffer();
    queue2.readBuffer();
    queue2.freeBuffer();
    }
    does not take so much time. readBuffer() only passes...
  23. Replies
    9
    Views
    162

    You must call readBuffer before freeBuffer to...

    You must call readBuffer before freeBuffer to really free it
  24. Thread: WaveplayerEx

    by WMXZ
    Replies
    41
    Views
    572

    @Frank unfortunately, you called id WaveplayerEx...

    @Frank
    unfortunately, you called id WaveplayerEx and not WavPlayerEx.
  25. Replies
    24
    Views
    363

    Hopefully we get sun tomorrow (PLZ 93xxx)

    Hopefully we get sun tomorrow (PLZ 93xxx)
  26. @choochoo22 OK, I wrote a test program and I see...

    @choochoo22
    OK, I wrote a test program and I see that you are correct, flush() does give the same filesize than close().

    I was rerunning code in OP with Thread=true and got no error


    Run...
  27. Replies
    24
    Views
    363

    @luni, now put all in plain sunlight I would be...

    @luni,
    now put all in plain sunlight
    I would be curious to see if and when the 85 decC will be exceeded.
    (OK, this may not be the case of OP, but for the sake of argument)
    Also, I guess you...
  28. The size information is only written to file...

    The size information is only written to file directory entry when you close the file.
    This does not mean data are not written to file (check with hex editor).
    Allocating huge file space will write...
  29. Replies
    24
    Views
    363

    depending on the thermal properties of the box,...

    depending on the thermal properties of the box, if no heat is removed from the box, a sealed box will keep all heat inside, and at certain point processor will overheat, right?
  30. Replies
    24
    Views
    363

    IMHO, it is not the enclosure per se, but...

    IMHO, it is not the enclosure per se, but external heat.
    If you cannot cool the box, a heatsink on processor is useless, as the box inside will heat up.
    plastic may even be worse, as it is bad heat...
  31. I had no error on the test program. Run...

    I had no error on the test program.

    Run complete: 30 Seconds

    But it is general that file that are not closed properly may show up as zero size. If you inspect them with hex editor you will see...
  32. Replies
    6
    Views
    158

    The audio library is designed for 16bot 44.1 kHz,...

    The audio library is designed for 16bot 44.1 kHz, but you can change. There is lot of evidence on this forum.
  33. Replies
    24
    Views
    363

    I would avoid to have anything in metallic...

    I would avoid to have anything in metallic enclosure with direct sunshine (OK it will debug your system)
  34. issue is that you need to close the file at the...

    issue is that you need to close the file at the end
    using your code in original post I did in

    void End(String message){
    dataFile.close();
    threads.stop();
    Serial.print("\n\n");
    ...
  35. what happens if you combine all fill operation in...

    what happens if you combine all fill operation in same thread and not in setup() and writeLog thread ?
  36. can you please give your solution, so other with...

    can you please give your solution, so other with similar issues get help.
  37. Is that Linux? did you do what I said, exiting...

    Is that Linux?
    did you do what I said, exiting Arduino IDE?

    I know it compiles here on Win10. The two functions setup() and loop() exist in myApp.cpp as you can see.

    As a test you could remove...
  38. Replies
    46
    Views
    2,527

    Sticky: digitalWrite(SS_SD_CARD, LOW); // SD Card...

    digitalWrite(SS_SD_CARD, LOW); // SD Card Enabled
    delay(1000);
    if (!SD.begin(SS_SD_CARD)) {
    Serial.println("SD Card initialization failed!");
    return;
    }
    Serial.println("SD Card...
  39. Here it compiles without issue A 1.8.15 TD 1.54...

    Here it compiles without issue A 1.8.15 TD 1.54
    best:
    exit and re-enter Arduino IDE
  40. Yes that is better Not sure what you have done...

    Yes that is better
    Not sure what you have done and what you posted correspond to this.
    splitting the config file and copying it to setup and loop is not the way this program can work.
    maybe you...
  41. Please edit you post and put your code into #code...

    Please edit you post and put your code into #code markdown, this way I cannot understand what you have done
    only code that you modified
  42. show please picture of your setup, config file...

    show please picture of your setup, config file (if modified) and all other changes you did to program (if any)
  43. You can use always the same GND pin and any GND...

    You can use always the same GND pin and any GND pin is OK. Note: AGND is different and best only to be used for Analog circuits (e.g. not for power filter).
  44. Replies
    1
    Views
    110

    ILI9431 8bit parallel

    I know, this may not be relevant for most of us, but I wanted to report it anyhow for the records.

    I needed something from local Conrad store (in DEU) and in order to justify the trip to town I...
  45. but only with ICS43434, IIRC

    but only with ICS43434, IIRC
  46. Replies
    10
    Views
    273

    maybe you should write file=sd.open(fileName,...

    maybe you should write

    file=sd.open(fileName, FILE_WRITE);
    otherwise ....
  47. Replies
    10
    Views
    273

    The code in OP should be sufficient to tell SdFat...

    The code in OP should be sufficient to tell SdFat to create proper time stamps
    (void dateTime(uint16_t* date, uint16_t* time, uint8_t* ms10) {...} with 'FsDateTime::setCallback(dateTime);' in...
  48. Replies
    962
    Views
    95,680

    Because it is coded for T3.5/T3.6. If really...

    Because it is coded for T3.5/T3.6. If really required, I suggest potential users modify the code to run on T3.2. This way the user learns the concept behind the mtp-logger.
  49. Replies
    4
    Views
    103

    do you have some sdfat-beta or local sdfat...

    do you have some sdfat-beta or local sdfat libraries around?
  50. Replies
    10
    Views
    273

    upgrade to Td 1.54 and use SD.h, as it already...

    upgrade to Td 1.54 and use SD.h, as it already uses SdFat
    The warning is that Bill SdFat correctly uses time.h which is also in Time library (where TimeLib.h is located)
    best, simply go into Time...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4