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.
-
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?
-
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.
-
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