-
Notifications
You must be signed in to change notification settings - Fork 126
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
SIM7000G connect with user name password and chap auto. (IDFGH-13505) #635
Comments
Hi @Aviarbiser I'm sorry, we currently don't have an example that demonstrates PPP connection using CHAP authentication method. #include "esp_netif_ppp.h"
...
//
{
...
// before PPPoS connection, but after initializing netif and modem
esp_netif_ppp_set_auth(esp_netif, NETIF_PPP_AUTHTYPE_CHAP, USERNAME, PASSWORD); |
Hi david,
Thanks for your fast replay.
I will test it today and update.
Regards
Avihai Arbiser
+972508942777
***@***.***
From: david-cermak ***@***.***>
Sent: Monday, August 19, 2024 5:48 PM
To: espressif/esp-protocols ***@***.***>
Cc: Aviahi Arbiser ***@***.***>; Mention ***@***.***>
Subject: Re: [espressif/esp-protocols] SIM7000G connect with user name password and chap auto. (IDFGH-13505) (Issue #635)
Hi @Aviarbiser<https://github.com/Aviarbiser>
I'm sorry, we currently don't have an example that demonstrates PPP connection using CHAP authentication method.
you have to add a call to esp_netif_ppp_set_auth() before switching to data mode.
#include "esp_netif_ppp.h"
...
//
{
...
// before PPPoS connection, but after initializing netif and modem
esp_netif_ppp_set_auth(esp_netif, NETIF_PPP_AUTHTYPE_CHAP, USERNAME, PASSWORD);
—
Reply to this email directly, view it on GitHub<#635 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMBOAKYSHAAHCZZVVM7QCLDZSIAQ7AVCNFSM6AAAAABMXWBDWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJWG43DEMZZGA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hi, thanks for your fast replay. I add this to my code and it not connecting to GRPS (LTE) . |
Note that |
Ok , but if I see that the modem is connected "ATD*99# return CONNECT 150000000 " why I don't get IP and get timeout? What I do to check (debug) this problem? |
Hello again, any suggestion? |
You can debug this further by setting
and check the CHAP related logs (which are more readable than the plain text you posted above)
Have you enabled the CHAP option is menuconfig? PS: I'm adding more tests including CHAP authentication in #640 |
And here's how it looks like if the authentication succeeds: https://github.com/espressif/esp-protocols/actions/runs/10528192870/job/29173244199?pr=640#step:5:217 (I'll have to still update it to run both methods) |
Thank I will check and update |
After further investigation, I discovered that the issue was related to the SIM7000 module. I have since replaced it with a SIM7600 module, and I am pleased to report that everything is now functioning perfectly. Thank you for your support and assistance. Best regards, |
Answers checklist.
General issue report
Hello,
I am using sim7000 with pppos, it working ok if I don't use chap authentication .
I try to find some help or example to do this but I don't find something that work.
Is there any working example or any idea how to do this.
In the TinyGSM project on Arduino I fixed the AT command in gprsConnectImpl to: sendAT(GF("+CNCFG=1,""), apn, "","", "","", user, pwd,authentication, '" ');
And it works well, maybe it will help solve the problem here too.
The text was updated successfully, but these errors were encountered: