Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS error 715 on A7670E-LASE #186

Closed
worldhugo opened this issue Dec 3, 2024 · 22 comments
Closed

HTTPS error 715 on A7670E-LASE #186

worldhugo opened this issue Dec 3, 2024 · 22 comments

Comments

@worldhugo
Copy link

Hi,

I have problem of error 715 with the example HttpsBuildInGet.
It's work on some site (https://www.google.fr) but not on other (https://hglight.fr/ilo/).

It's not a SIM Card credit issue.

AT+SIMCOMATI
Manufacturer: INCORPORATED
Model: A7670E-LASE
Revision: A011B12A7670M7
A7670M7_B12V02_220613
QCN:
IMEI: 860470062749167
MEID:
+GCAP: +CGSM,+FCLASS,+DS
DeviceInfo:

ATI
Manufacturer: INCORPORATED
Model: A7670E-LASE
Revision: A7670M7_V1.11.1
IMEI: 860470062749167
+GCAP: +CGSM,+FCLASS,+DS

I don't understand ...

Thanks !

@lewisxhe
Copy link
Contributor

lewisxhe commented Dec 3, 2024

Please see this post to update to the latest firmware
#117

@worldhugo
Copy link
Author

Hi @lewisxhe ,

it this firmware the right for my device ? A7670E-LASE A124B01

@worldhugo
Copy link
Author

Ok, seems working after firmware upgrade :

AT+SIMCOMATI
Manufacturer: SIMCOM INCORPORATED
Model: A7670E-LASE
Revision: A124B01A7670M7
A7670M7_B01V01_240722
IMEI:

ATI
Manufacturer: SIMCOM INCORPORATED
Model: A7670E-LASE
Revision: V1.11.2
IMEI:

@worldhugo worldhugo reopened this Dec 3, 2024
@worldhugo
Copy link
Author

@lewisxhe After upgrade, device registered to network but can't connect, I receive a lot of :
+CGEV: ME PDN DEACT 1
+CGEV: ME PDN DEACT 1
+CGEV: EPS PDN ACT 1
+CGEV: NW PDN DEACT 1

Any ideas ?

Thx,

@lewisxhe
Copy link
Contributor

lewisxhe commented Dec 4, 2024

Can you provide the full logs? Or which example did you run?

@worldhugo
Copy link
Author

worldhugo commented Dec 4, 2024

Hi,

Sketch : (Network example)

#define TINY_GSM_RX_BUFFER          1024 // Set RX buffer to 1Kb

// See all AT commands, if wanted
#define DUMP_AT_COMMANDS

#include "utilities.h"
#include <TinyGsmClient.h>
#include "Arduino.h"

#ifdef DUMP_AT_COMMANDS  // if enabled it requires the streamDebugger lib
#include <StreamDebugger.h>
StreamDebugger debugger(SerialAT, Serial);
TinyGsm modem(debugger);
#else
TinyGsm modem(SerialAT);
#endif

#define NETWORK_APN "wsim" 


void setup()
{
    Serial.begin(115200); // Set console baud rate

    Serial.println("Start Sketch");

    SerialAT.begin(115200, SERIAL_8N1, MODEM_RX_PIN, MODEM_TX_PIN);

#ifdef BOARD_POWERON_PIN
    pinMode(BOARD_POWERON_PIN, OUTPUT);
    digitalWrite(BOARD_POWERON_PIN, HIGH);
#endif

    // Set modem reset pin ,reset modem
    pinMode(MODEM_RESET_PIN, OUTPUT);
    digitalWrite(MODEM_RESET_PIN, !MODEM_RESET_LEVEL); delay(100);
    digitalWrite(MODEM_RESET_PIN, MODEM_RESET_LEVEL); delay(2600);
    digitalWrite(MODEM_RESET_PIN, !MODEM_RESET_LEVEL);

    pinMode(BOARD_PWRKEY_PIN, OUTPUT);
    digitalWrite(BOARD_PWRKEY_PIN, LOW);
    delay(100);
    digitalWrite(BOARD_PWRKEY_PIN, HIGH);
    delay(100);
    digitalWrite(BOARD_PWRKEY_PIN, LOW);

    // Check if the modem is online
    Serial.println("Start modem...");

    int retry = 0;
    while (!modem.testAT(1000)) {
        Serial.println(".");
        if (retry++ > 10) {
            digitalWrite(BOARD_PWRKEY_PIN, LOW);
            delay(100);
            digitalWrite(BOARD_PWRKEY_PIN, HIGH);
            delay(1000);
            digitalWrite(BOARD_PWRKEY_PIN, LOW);
            retry = 0;
        }
    }
    Serial.println();

    // Check if SIM card is online
    SimStatus sim = SIM_ERROR;
    while (sim != SIM_READY) {
        sim = modem.getSimStatus();
        switch (sim) {
        case SIM_READY:
            Serial.println("SIM card online");
            break;
        case SIM_LOCKED:
            Serial.println("The SIM card is locked. Please unlock the SIM card first.");
            // const char *SIMCARD_PIN_CODE = "123456";
            // modem.simUnlock(SIMCARD_PIN_CODE);
            break;
        default:
            break;
        }
        delay(1000);
    }

    // Get model info
    modem.sendAT("+SIMCOMATI");
    modem.waitResponse();

    //SIM7672G Can't set network mode
#ifndef TINY_GSM_MODEM_SIM7672
    if (!modem.setNetworkMode(MODEM_NETWORK_LTE)) {
        Serial.println("Set network mode failed!");
    }
    String mode = modem.getNetworkModes();
    Serial.print("Current network mode : ");
    Serial.println(mode);
#endif

#ifdef NETWORK_APN
    Serial.printf("Set network apn : %s\n", NETWORK_APN);
    modem.sendAT(GF("+CGDCONT=1,\"IP\",\""), NETWORK_APN, "\"");
    if (modem.waitResponse() != 1) {
        Serial.println("Set network apn error !");
    }
#endif

    // Check network registration status and network signal status
    int16_t sq ;
    Serial.print("Wait for the modem to register with the network.");
    RegStatus status = REG_NO_RESULT;
    while (status == REG_NO_RESULT || status == REG_SEARCHING || status == REG_UNREGISTERED || status == REG_EMERGENCY) {
        status = modem.getRegistrationStatus();
        switch (status) {
        case REG_UNREGISTERED:
        case REG_SEARCHING:
            sq = modem.getSignalQuality();
            Serial.printf("[%lu] Signal Quality:%d\n", millis() / 1000, sq);
            delay(1000);
            break;
        case REG_DENIED:
            Serial.println("Network registration was rejected, please check if the APN is correct");
            return ;
        case REG_OK_HOME:
            Serial.println("Online registration successful");
            break;
        case REG_OK_ROAMING:
            Serial.println("Network registration successful, currently in roaming mode");
            break;
        default:
            Serial.printf("Registration Status:%d\n", status);
            delay(1000);
            break;
        }
    }
    Serial.println();


    Serial.printf("Registration Status:%d\n", status);
    delay(1000);

    String ueInfo;
    if (modem.getSystemInformation(ueInfo)) {
        Serial.print("Inquiring UE system information:");
        Serial.println(ueInfo);
    }

    if (!modem.enableNetwork()) {
        Serial.println("Enable network failed!");
    }

    delay(5000);

    String ipAddress = modem.getLocalIP();
    Serial.print("Network IP:"); Serial.println(ipAddress);


    String resolved_ip_addr;
    uint32_t rep_data_packet_size;
    uint32_t tripTime;
    uint8_t TTL;
    for (int i = 0; i < 4; ++i) {
        int res = modem.ping("www.google.fr", resolved_ip_addr, rep_data_packet_size, tripTime, TTL);
        if (res == 1) {
            Serial.printf("Reply from %s: bytes=%u time=%ums TTL=%u\n", resolved_ip_addr, rep_data_packet_size, tripTime, TTL);
        } else {
            Serial.printf("Error code : %d\n", res);
        }
        delay(1000);
    }
}

void loop()
{

    if (SerialAT.available()) {
        Serial.write(SerialAT.read());
    }
    if (Serial.available()) {
        SerialAT.write(Serial.read());
    }
    delay(1);
}

Logs :

Start Sketch
Start modem...
AT
AT
AT
AT
.
AT
AT
AT
AT
.
AT
AT
AT
AT
.
AT
AT

*ATREADY: 1

+CPIN: READY
AT
AT

OK

AT+CPIN?
AT+CPIN?

+CPIN: READY

OK
SIM card online
AT+SIMCOMATI
AT+SIMCOMATI

Manufacturer: SIMCOM INCORPORATED
Model: A7670E-LASE
Revision: A124B01A7670M7
A7670M7_B01V01_240722
IMEI: 

OK
AT+CNMP=38
AT+CNMP=38

OK
AT+CNMP?
AT+CNMP?

SMS DONE

+CNMP: 38

OK
Current network mode : LTE
Set network apn : wsim
AT+CGDCONT=1,"IP","wsim"
AT+CGDCONT=1,"IP","wsim"

OK
Wait for the modem to register with the network.AT+CGREG?
AT+CGREG?

+CGREG: 0,0

OK
AT+CSQ
AT+CSQ

+CSQ: 99,99

OK
[8] Signal Quality:99
AT+CGREG?
AT+CGREG?

+CGREG: 0,0

OK
AT+CSQ
AT+CSQ

+CSQ: 99,99

OK
[9] Signal Quality:99
AT+CGREG?

+CGEV: EPS PDN ACT 1

+CGEV: NW PDN DEACT 1
AT+CGREG?

+CGREG: 0,5

OK
Network registration successful, currently in roaming mode

Registration Status:5
AT+CPSI?

+CGEV: ME PDN DEACT 1
AT+CPSI?

+CPSI: LTE,Online,208-15,0x13ED,4656947,237,EUTRAN-BAND1,375,4,4,14,36,39,6

OK
Inquiring UE system information:LTE,Online,208-15,0x13ED,4656947,237,EUTRAN-BAND1,375,4,4,14,36,39,6
AT+NETOPEN
AT+NETOPEN

OK

+CGEV: ME PDN DEACT 1
Enable network failed!
AT+IPADDR

+CGEV: EPS PDN ACT 1

+CGEV: NW PDN DEACT 1

PB DONE

+CGEV: ME PDN DEACT 1

+CGEV: ME PDN DEACT 1

+CGEV: EPS PDN ACT 1

+CGEV: NW PDN DEACT 1

+CGEV: ME PDN DEACT 1
AT+IPADDR

+IP ERROR: Network not opened

ERROR
Network IP:
AT+CPING="www.google.fr",1,1,64,1000,10000,255
AT+CPING="www.google.fr",1,1,64,1000,10000,255

OK

+CPING: 3,Error code : 3
AT+CPING="www.google.fr",1,1,64,1000,10000,255
0,0,0,0,0,0

+CGEV: ME PDN DEACT 1

+CGEV: EPS PDN ACT 1

+CGEV: NW PDN DEACT 1
AT+CPING="www.google.fr",1,1,64,1000,10000,255

OK

+CPING: 3,Error code : 3
AT+CPING="www.google.fr",1,1,64,1000,10000,255
0,0,0,0,0,0
AT+CPING="www.google.fr",1,1,64,1000,10000,255

OK

+CPING: 3,Error code : 3
AT+CPING="www.google.fr",1,1,64,1000,10000,255
0,0,0,0,0,0

+CGEV: ME PDN DEACT 1
AT+CPING="www.google.fr",1,1,64,1000,10000,255

OK

+CPING: 3,Error code : 3
0,0,0,0,0,0

+CGEV: EPS PDN ACT 1

+CGEV: NW PDN DEACT 1

+CGEV: ME PDN DEACT 1

+CGEV: EPS PDN ACT 1

+CGEV: NW PDN DEACT 1

+CGEV: ME PDN DEACT 1

+CGEV: ME PDN DEACT 1

+CGEV: EPS PDN ACT 1

+CGEV: NW PDN DEACT 1

+CGEV: ME PDN DEACT 1

+CGEV: EPS PDN ACT 1

+CGEV: NW PDN DEACT 1

+CGEV: ME PDN DEACT 1

+CGEV: ME PDN DEACT 1

+CGEV: EPS PDN ACT 1

+CGEV: NW PDN DEACT 1

+CGEV: ME PDN DEACT 1

+CGEV: EPS PDN ACT 1

+CGEV: NW PDN DEACT 1

+CGEV: ME PDN DEACT 1

Same sketch working before upgrade :(

@lewisxhe
Copy link
Contributor

lewisxhe commented Dec 5, 2024

It looks like you are roaming. Are you sure this card can access the network when roaming? Have you tried a non-roaming SIM card?

@worldhugo
Copy link
Author

yes, I'm sure, because it worked before the update.

I use sim cards from Whereversim and they say :
The M2M SIM cards of the wherever SIM are pure roaming cards without a home network. This means that these cards exchange data both nationally and internationally via roaming. It is therefore imperative that the roaming option is activated in your end device. Please check whether this is the case. Activate it if it should be deactivated.

Thx,

@lewisxhe
Copy link
Contributor

lewisxhe commented Dec 5, 2024

SIMCOM replied that no additional commands are needed to enable data connection. You'd better try to change a SIM card to test.

If the same situation still occurs after the change, you need to provide the modem log for further analysis.

How to capture the log, please see here:
https://github.com/Xinyuan-LilyGO/LilyGO-T-A76XX/blob/main/docs/a7670x_capture_log.md

@worldhugo
Copy link
Author

I tried with 3 SIM cards ....

Please find the modem log : https://hglight.fr/lilygo/Log%202024-12-05%2009;55;39.010.zip

Thx

@lewisxhe
Copy link
Contributor

lewisxhe commented Dec 5, 2024

Thx

@worldhugo
Copy link
Author

do you send the logs to SIMCOM ?

@lewisxhe
Copy link
Contributor

lewisxhe commented Dec 5, 2024

Of course, now we just need to wait, which may take a long time.

@lewisxhe
Copy link
Contributor

lewisxhe commented Dec 5, 2024

By the way, you need to provide me with the PN number on the modem label.

@worldhugo
Copy link
Author

PN number : S2-109ZT-Z313W

@lewisxhe lewisxhe added the simcom label Dec 6, 2024
@lewisxhe
Copy link
Contributor

lewisxhe commented Dec 9, 2024

@worldhugo
Can you confirm that the APN you are using is correct?

Before the firmware update, you can use this APN to access the network and visit normally?

Did the problem occur after the upgrade?
image

@worldhugo
Copy link
Author

worldhugo commented Dec 9, 2024

yes, APN is "wsim"

but I don't know why there are Chinese characters or "?"

you can see my code and Arduino Logs in previous comment : https://github.com/Xinyuan-LilyGO/LilyGO-T-A76XX/issues/186#issuecomment-2517745900

Before the firmware upgrade I can use this APN to access the network and visit normally, I confirm !
It's appear right after upgrade

@lewisxhe
Copy link
Contributor

@worldhugo Try this firmware, if it doesn't work, go ahead and capture a log file and send it here. 20241210-A7670E-LASE-TEST

@worldhugo
Copy link
Author

@lewisxhe seems to work :)

@lewisxhe
Copy link
Contributor

Great, I will give feedback to SIMCOM and there will be a formal version of the firmware later.

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 10, 2025
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants