Hi Denis, Thank you very much for your explanation. That was very helpful.
> Please find the dumps attached. I did not find any problems in them. DTE > sent a > > termination request but why? I tried to use the CHAP, PAP and NONE auth > > metnods but NONE hands with gsm dial. > > I don't see pppd getting any IPCP protocol going, so I'm not really sure > any of > this is working. > My previous dumps from pppd were incomplete somehow. I have got a new dump from pppd using CHAP. Please find it attached. The dump looks good. > > I am going to debug ofono as you suggested: > > > > > Maybe put a few debug statements in ppp_auth.c, ppp_pap_start, > ppp_pap_timeout > > > and ppp_pap_process_packet. See if PAP even occurs. > > > > Also I have made a small patch for gsmdial that helps to choose auth > method. > > Please find it attached. > > Feel free to send this in using git send-email. I don't review patches in > attachments. Note that the last time I looked at gsmdial was ~9 years > ago, so > not sure how up to date it is compared to the ppp based gprs context code > in > drivers/atmodem. You may want to use g_at_ppp_set_recording (maybe via > environment variable) from drivers/atmodem/gprs-context.c directly in > order to > obtain dumps of what is happening when oFono is attempting to activate the > context. > I did that a bit differently. I have added some DBG () prints to gathdlc.c because the problem has been found there. Data that modem sends in phase 2 is not decoded properly and as a result ppp_receive () never invoked. I am not sure why because I do not have any info about the algorithm and encoding. Could you please advise me on this? I have attached a log from ofono with data dumping in new_bytes () and a small patch for the gathdlc.c file that I used to obtain this log. The log gives a clear picture but I cannot understand why pppd works in this situation and ofono does not? Is it an ofono problem? Is there any documentation about the decoding process implemented in the new_bytes () ofono function? Any help will be appreciated. Best regards, Sergei.
ofono_ppp_chap_dump.log
Description: Binary data
pppd_chap.dump
Description: Binary data
PPP-dump-hdlc-data.patch
Description: Binary data
_______________________________________________ ofono mailing list -- [email protected] To unsubscribe send an email to [email protected]
