Navigation

    LILYGO

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    T-sim7600E don't recognize SD card

    Technical Discussion
    3
    11
    1007
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      papbo last edited by

      Hello, I try to read SD files on the T-SIM7600E, but I have only "Card Mount Failed".
      in my config file I have
      #include "FS.h"
      #include "SD.h"
      #include "SPI.h"
      #define SD_MISO 2
      #define SD_MOSI 15
      #define SD_SCLK 14
      #define SD_CS 13

      and in my setup

      SPI.begin(SD_SCLK, SD_MISO, SD_MOSI, SD_CS);

      if(!SD.begin(SD_CS)){
      Serial.println("Card Mount Failed");
      return;
      }
      uint8_t cardType = SD.cardType();

      if(cardType == CARD_NONE){
          Serial.println("No SD card attached");
          return;
      }
      

      When I run the sketch it stops at "Card mount failed"

      I have tested with several SD card with a Fat32 format.
      Any idea about the problem
      Regards
      Papbo

      1 Reply Last reply Reply Quote 0
      • C
        Caz last edited by

        I successfully read SD card on my sim7600g, I mean I have "SDCard Size: 3789MB" when I run examples/Arduino_TinyGSM/AllFunctions/AllFunctions.ino. The SD card is formatted as FAT32 on Windows 10, no partition. I suggest to run one of examples such as AllFunctions.ino first.

        P 1 Reply Last reply Reply Quote 0
        • P
          papbo @Caz last edited by

          @caz Hello,
          Thanks for your reply.
          Unfortunately I have tested my board with all the different exemples from the Arduino library and the result are always the same "SD card mount fail".
          I have formated the various SD card on Windows 10 and MAC OS as FAt32 with the same result.
          Regards
          Papbo

          C 1 Reply Last reply Reply Quote 0
          • C
            Caz @papbo last edited by

            @papbo How do you attache the SD? Does its contact side face to the board? Its connector is not fail safe.

            P 2 Replies Last reply Reply Quote 0
            • P
              papbo @Caz last edited by

              @caz Yes The SD is on the right side..

              1 Reply Last reply Reply Quote 0
              • P
                papbo @Caz last edited by

                @caz hello, do you have a sketch to test the SD card on the SIM7600...other than the examples (they are not working here)
                Regards
                Papbo

                C 1 Reply Last reply Reply Quote 0
                • C
                  Caz @papbo last edited by

                  @papbo AllFunctions.ino has following code.

                  //Initialize SDCard
                  SPI.begin(SD_SCLK, SD_MISO, SD_MOSI, SD_CS);
                  if (!SD.begin(SD_CS)) {
                  Serial.println("SDCard MOUNT FAIL");
                  } else {
                  uint32_t cardSize = SD.cardSize() / (1024 * 1024);
                  String str = "SDCard Size: " + String(cardSize) + "MB";
                  Serial.println(str);
                  }

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    papbo @Caz last edited by

                    @caz It is exactly what I have in my sketch (look at my first post)
                    Thanks
                    Rehards
                    Papbo

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      Caz @papbo last edited by

                      @papbo Does you code have serial port initilization code?

                      // Set console baud rate
                      SerialMon.begin(115200);
                      delay(10);

                      // Set GSM module baud rate
                      SerialAT.begin(UART_BAUD, SERIAL_8N1, MODEM_RX, MODEM_TX);

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        papbo @Caz last edited by

                        @caz Of course all is ok regarding UART communication...I canuse the GPS mode, the GPRS mode, wifi...AT commands , send and receive SMS..but unable to read and write to the SD card
                        Regards
                        Papbo

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          Sukaibin @papbo last edited by

                          @papbo What is your current ESP32 version? Try upgrading?

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Powered by NodeBB | Contributors