CHAP Authentication Failure in EG915U Module


We need support from Quectel regarding CHAP authentication failures during the configuration of EG915UEU module.
Please see the attached image for your reference, in which the module will fail to connect and we can not get any IP address.

Hi, did you set the parameters with AT+QICSGP for CHAP. Are you even sure you need to authenticate to the other side?

Yes we tried setting the parameters in AT+QICSGP.I attached the logs.

Below are the logs for the same

debug # (from /etc/ppp/peers/quectel-ppp)
nodetach # (from /etc/ppp/peers/quectel-ppp)
dump # (from /etc/ppp/peers/quectel-ppp)
noauth # (from /etc/ppp/peers/quectel-ppp)
user $LTE_USERNAME # (from /etc/ppp/peers/quectel-ppp)
password ??? # (from /etc/ppp/peers/quectel-ppp)
remotename 3gppp # (from /etc/ppp/peers/quectel-ppp)
/dev/ttyUSB2 # (from /etc/ppp/peers/quectel-ppp)
115200 # (from /etc/ppp/peers/quectel-ppp)
lock # (from /etc/ppp/peers/quectel-ppp)
connect /usr/sbin/chat -E -s -v -f /etc/ppp/peers/quectel-chat-connect # (from /etc/ppp/peers/quectel-ppp)
disconnect /usr/sbin/chat -E -s -v -f /etc/ppp/peers/quectel-chat-disconnect # (from /etc/ppp/peers/quectel-ppp)
crtscts # (from /etc/ppp/peers/quectel-ppp)
local # (from /etc/ppp/peers/quectel-ppp)
hide-password # (from /etc/ppp/peers/quectel-ppp)
novj # (from /etc/ppp/peers/quectel-ppp)
novjccomp # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-local # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-remote # (from /etc/ppp/peers/quectel-ppp)
ipparam 3gppp # (from /etc/ppp/peers/quectel-ppp)
noipdefault # (from /etc/ppp/peers/quectel-ppp)
defaultroute # (from /etc/ppp/peers/quectel-ppp)
usepeerdns # (from /etc/ppp/peers/quectel-ppp)
:10.0.0.10 # (from /etc/ppp/peers/quectel-ppp)
noccp # (from /etc/ppp/peers/quectel-ppp)
abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 120 seconds
send (AT^M)
expect (OK)
AT^M^M
OK
– got it

send (ATE0^M)
expect (OK)
^M
ATE0^M^M
OK
– got it

send (ATI^M)
expect (OK)
^M
^M
Quectel^M
EG915U^M
Revision: EG915UEUABR02A05M08^M
^M
OK
– got it

send (AT+CSQ^M)
expect (OK)
^M
^M
+CSQ: 31,99^M
^M
OK
– got it

send (AT+CPIN?^M)
expect (OK)
^M
^M
+CPIN: READY^M
^M
OK
– got it

send (AT+COPS?^M)
expect (OK)
^M
^M
+COPS: 1^M
^M
OK
– got it

send (AT+QICSGP=1,1,“eapn1.net”,“”,“”,2^M)
expect (OK)
^M
^M
OK
– got it

send (AT+CFUN=1^M)
expect (OK)
^M
^M
OK
– got it

send (AT+CEREG?^M)
expect (OK)
^M
^M
+CEREG: 2,2,“FE01”,“0CB340C”,7^M
^M
OK
– got it

send (AT+CEREG=2^M)
expect (OK)
^M
^M
OK
– got it

send (AT+CEREG?^M)
expect (OK)
^M
^M
+CEREG: 2,2,“FE01”,“0CB340C”,7^M
^M
OK
– got it

send (AT+CGREG=2^M)
expect (OK)
^M
^M
OK
– got it

send (AT+CGREG?^M)
expect (OK)
^M
^M
+CGREG: 2,2,“FE01”,“0CB340C”,7^M
^M
OK
– got it

send (ATZ^M)
expect (OK)
^M
^M
OK
– got it

send (ATDT99#^M)
expect (CONNECT)
^M
ATDT
99#^M^M
CONNECT
– got it

Script /usr/sbin/chat -E -s -v -f /etc/ppp/peers/quectel-chat-connect finished (pid 1048), status = 0x0
Serial connection established.
using channel 6
Using interface ppp0
Connect: ppp0 ↔ /dev/ttyUSB2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x66bb7da7> ]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x731355a8> ]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x731355a8> ]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x66bb7da7> ]
rcvd [CHAP Challenge id=0x1 , name = “lwIP”]
sent [CHAP Response id=0x1 <46ef463cf65d873d11a8c0daa7958ab0>, name = “$LTE_USERNAME”]
rcvd [CHAP Failure id=0x1 " l\316\200"]
CHAP authentication failed: lM-NM-^@
CHAP authentication failed
sent [LCP TermReq id=0x2 “Failed to authenticate ourselves to peer”]
rcvd [LCP TermReq id=0x2 “Authentication failed”]
sent [LCP TermAck id=0x2]
rcvd [LCP TermAck id=0x2]
Connection terminated.
abort on (ERROR)
abort on (NO DIALTONE)
\send (+++ATH^M)

Good bye

Did you add the username password here AT+QICSGP=1,1,“eapn1.net”,“username”,“password”,2 here or did you remove them because you do not want to show them?
Also did you check if the PDP context was activated with +QIACT ?

No, we cannot set a username or password here.
Do we need to set
If yes, then from where can we get these usernames and passwords?
from the SIM network service provider or somewhere else?

That depends and is the reason why I asked if you even need to authenticate. Maybe try without authentication once AT+QICSGP=1,1,“eapn1.net”,“”,“”,0. And yes these login data you would get from your provider if the APN you use is private. Why do you think you can’t set the username password there?

No, I am not saying we cannot set; we are able to set.
But the thing is, I don’t know from where we can get these usernames and passwords.

Have you already tried without authentication like I wrote in the last comment, or did that also not work?

Yes, we tried, but it won’t work.
Is it related to the firmware version that we are using? Will it affect