Handle wrong password in PPP authentication

Hi,

We’re using lots of EC200S modules with great success, and we’re using the PPP connection (baremetal, lwIP).
We can’t get around one problem. Even if the end user sets wrong user name or password the CHAP authentication is successful, but right after that the module sends NO CARRIER. We would like to write a log entry about that, but how can we determine that the NO CARRIER is due to the wrong user name or password?
The AT+CEER returns 0.

The upper half of the attached image shows if everything is correct, the lower half shows with a wrong user name.

Any help would be appreciated.
Thanks!

Hi Gergo

We do not have command or URC to indicate the NO CARRIER due to the wrong user name or password.
You can determine which link the problem occurs by judging the abnormal PPP frames in your code.

0xc021- LCP data message carried in information domain
0xc023- PAP data message carried in information domain
0xc223- CHAP datagrams hosted in the information domain
0x8021- NCP data message carried in information domain
0x0021- IP data message carried in the information domain