I am encountering an issue when trying to establish an SSL/TLS connection using the A7670 module. Despite following the available documentation, the problem persists. Below, I have detailed the scenario and the troubleshooting steps that have been taken so far:
Objective:
My goal is to have the ESP32C6/A7670 setup communicate iBeacon signals via HTTP POST/GET to a server that requires HTTPS. This communication is essential for the functionality of our project, and the SSL/TLS connection is a critical part of ensuring secure data transmission.
Problem Description:
I am attempting to open an SSL/TLS connection to an HTTPS server (e.g., www.google.com on port 443) using the A7670 module. While I am able to start the SSL service and open a connection to the server, I am experiencing issues when attempting to send and receive data. The main errors I am encountering are related to sending data via AT+CCHSEND and receiving data via AT+CCHRECV.
Steps Taken to Resolve the Issue:
- Initial Configuration:
I correctly configured the PDP context and obtained an IP address using the following commands:
AT+CGDCONT=1,”IP”,”iot4u.br” AT+CGAUTH=1,1,”arqia”,”arqia”
AT+CGPADDR=1
-
SSL/TLS Configuration:
I configured the module to use TLS 1.2 with the following command:
AT+CSSLCFG=”sslversion”,0,3I disabled certificate verification to simplify the handshake:
AT+CSSLCFG=”authmode”,0,0
- Starting SSL Service:
I successfully started the SSL service using:
AT+CCHSTART
- Attempt to Open a Connection to the Server:
The connection to the server was successfully opened:
AT+CCHOPEN=0,”www.google.com”,443,2
- Issues Sending and Receiving Data:
When attempting to send an HTTP request, I encountered an error with the AT+CCHSEND command:
AT+CCHSEND=0,”GET / HTTP/1.1rnHost: www.google.comrnConnection:
closernrn” ERROR
I also received an error when trying to receive data with AT+CCHRECV:
AT+CCHRECV=0,1024 ERROR
Troubleshooting Attempts:
-
Format and Size of Sent Data:
I tried sending the HTTP request in different formats, including interactive modes and adjustments to the payload size, but the errors persist. -
Tests with Different Servers:
I tested the connection with different servers (e.g., www.google.com, www.example.com), but the issue remains. -
Module Restart and Reset:
I restarted the module and reset it to factory settings to ensure there were no conflicts, but this did not resolve the issue. -
Network Parameters Verification:
I verified the network stability and the activation of the PDP context. Everything seems to be configured correctly, and the IP address is obtained without issues.
Given the scenario and all the troubleshooting steps taken, I believe the problem may be related to a specific configuration.
Need some help! Please!!!