Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    Sony Spresense LTE Extension Board, issue connecting to server.

    Spresense
    3
    3
    587
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      muji223 last edited by

      Hi, I have problems connecting to an external server operated on StableHost with a SSL certificate. I have successfully managed to attach the LTE Sim and I have inserted the certificates and private key onto the SD card to be read.

      Here is a snippet of the code to check the connection:

      //Authenticate User
          File rootCertsFile = theSD.open(ROOTCA_FILE, FILE_READ);
          //setCACERT has the issue of invalid parameter!
          tlsClient.setCACert(rootCertsFile, rootCertsFile.available());
          rootCertsFile.close();
      //Additional authentication <continued>
      
          int HTTP_CODE_OK = 200;
          int HTTP_CODE_NOT_FOUND = 404;
          
          if(lteAccess.getStatus() == LTE_READY)
          {
            // Start connection to Server
            int checkClient = http.connect(server, port);
      
            // Check Connection
            if (checkClient) {
              Serial.println("Connection available");
      
              // Start connection to Server
              http.beginRequest(); ....
            } else {
              Serial.println("HTTP Connection Unsuccessful"); } 
          } else {
            Serial.println("LTE-M Not Connected");
      

      I believe the code gets stuck in the connect() member function and continues to timeout, otherwise it would have printed "HTTP Connection Unsuccessful" on the serial port.

      There must be something I am missing that makes me unable to connect to the server with HTTPS.

      I have tried a simpler HTTP Connection using ArduinoHTTPClient, and I wanted to ask, is there a way to instantiate the HttpClient with only the LTE module, and not the TLS module?

      1 Reply Last reply Reply Quote
      • M
        MikeClark last edited by

        Check the network settings: Ensure that the board is connected to the network and that the network settings are correct. You can check the network settings by going to the Spresense LTE Extension Board's configuration page and reviewing the settings.

        Check the server settings: Ensure that the server is running and configured correctly. Check the server logs for any errors or issues that may be preventing the Spresense board from connecting.

        Test the connection: You can try to test the connection by pinging the server from the Spresense board or using a tool like cURL to send a request to the server. This can help you determine if there is an issue with the network or server.

        Update firmware: Make sure that the firmware on the Spresense board is up to date. Sony regularly releases firmware updates that address bugs and improve performance.

        Contact Support: If you've tried all of the above and are still having issues, you can contact Sony support for further assistance. They may be able to provide additional troubleshooting steps or help you identify if there is a hardware issue with the board.

        C 1 Reply Last reply Reply Quote
        • C
          CamilaSouza DeveloperWorld @MikeClark last edited by

          Great answer @MikeClark just want to add that this is the best channel for support regarding the Spresense board.

          @muji223, if you still are experiencing issues after trying @MikeClark's tips, please let us know and we will continue investigating together 🙂

          1 Reply Last reply Reply Quote
          • First post
            Last post
          Developer World
          Copyright © 2021 Sony Group Corporation. All rights reserved.
          • Contact us
          • Legal