All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Golubtsov <s.e.golubtsov@gmail.com>
To: ofono@ofono.org
Subject: Re: Quectel EC200T USB: Problems with context activation
Date: Tue, 29 Dec 2020 18:56:05 +0100	[thread overview]
Message-ID: <CAFiQ674XJtRUWH+5x39NqwdO=5J0tqAWnKKc7w118vgbUhh7Ew@mail.gmail.com> (raw)
In-Reply-To: <CAFiQ677Ovt4VJW8F9uO+4c85NsofS8Ex4GY2KPHZGshwS4duUA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]

Changing the authentication method to pap did not help. Please help.

Yours sincerely,
Sergei Golubtsov.


On Tue, Dec 29, 2020 at 4:55 PM Sergei Golubtsov <s.e.golubtsov@gmail.com>
wrote:

> In the first email I was mistaken about the authentication method in pppd
> - it is pap not chap. So, probably this is the problem. How can I change
> the authentication method for the context activation in Ofono from default
> chap to pap? Where is the best place to do it in the code?
>
> Yours sincerely,
> Sergei Golubtsov.
>
>
> On Tue, Dec 29, 2020 at 3:09 PM Sergei Golubtsov <s.e.golubtsov@gmail.com>
> wrote:
>
>> Hello,
>>
>> I am trying to add support for the Quectel EC200T USB modem. This modem
>> uses the option USB serial driver in the kernel.
>> As other Quectel modems, this one uses the atmodem ofono driver.
>>
>> I cannot overcome the problem of context activation. It fails at
>> "ofono/gatchat/gatppp.c:ppp_enter_phase() 2" after a minute.
>> At the same time, I can successfully use pppd. Both pppd and ofono use
>> the chap authentication method.
>>
>> Please find logs and the patch attached.
>> Any suggestions will be appreciated.
>>
>> Yours sincerely,
>> Sergei Golubtsov.
>>
>

[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 3583 bytes --]

[-- Attachment #3: EC200T_ofono_pap.log --]
[-- Type: application/octet-stream, Size: 13679 bytes --]

2020-12-29T17:46:44.136531+00:00 ofonod[14775]: [debug] ../git/ofono/drivers/atmodem/gprs-context.c:at_gprs_activate_primary() cid 1 auth 1
2020-12-29T17:46:44.138650+00:00 ofonod[14775]: [info] Modem: > AT+CGDCONT=1,"IP","internet"\r
2020-12-29T17:46:44.141943+00:00 ofonod[14775]: [info] Modem: < \r\nOK\r\n
2020-12-29T17:46:44.142187+00:00 ofonod[14775]: [debug] ../git/ofono/drivers/atmodem/gprs-context.c:at_cgdcont_cb() ok 1
2020-12-29T17:46:44.142985+00:00 ofonod[14775]: [info] Modem: > AT+CGDATA="PPP",1\r
2020-12-29T17:46:44.145184+00:00 ofonod[14775]: [info] Modem: < \r\nCONNECT\r\n
2020-12-29T17:46:44.145554+00:00 ofonod[14775]: [debug] ../git/ofono/drivers/atmodem/gprs-context.c:at_cgdata_cb() ok 1
2020-12-29T17:46:44.145681+00:00 ofonod[14775]: [debug] ../git/ofono/drivers/atmodem/gprs-context.c:setup_ppp()
2020-12-29T17:46:44.145928+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_generate_event: current state 0:INITIAL
2020-12-29T17:46:44.146063+00:00 ofonod[14775]: [info] PPP: event: 0 (Up), action: 2, new_state: 2 (CLOSED)
2020-12-29T17:46:44.146185+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_generate_event: current state 2:CLOSED
2020-12-29T17:46:44.150478+00:00 ofonod[14775]: [info] PPP: event: 2 (Open), action: 1026, new_state: 6 (REQSENT)
2020-12-29T17:46:44.151647+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_initialize_restart_count: current state 2:CLOSED
2020-12-29T17:46:44.152594+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_send_configure_request: current state 2:CLOSED
2020-12-29T17:46:44.153651+00:00 ofonod[14775]: [info] PPP: ../git/ofono/gatchat/gatppp.c:ppp_enter_phase() 1
2020-12-29T17:46:44.158629+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_process_configure_request: current state 6:REQSENT
2020-12-29T17:46:44.159735+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_generate_event: current state 6:REQSENT
2020-12-29T17:46:44.160678+00:00 ofonod[14775]: [info] PPP: event: 6 (RCR+), action: 2008, new_state: 8 (ACKSENT)
2020-12-29T17:46:44.163825+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_send_configure_ack: current state 6:REQSENT
2020-12-29T17:46:44.164993+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_process_configure_ack: current state 8:ACKSENT
2020-12-29T17:46:44.165958+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_generate_event: current state 8:ACKSENT
2020-12-29T17:46:44.166857+00:00 ofonod[14775]: [info] PPP: event: 8 (RCA), action: 129, new_state: 9 (OPENED)
2020-12-29T17:46:44.167457+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_initialize_restart_count: current state 8:ACKSENT
2020-12-29T17:46:44.168427+00:00 ofonod[14775]: [info] PPP: ../git/ofono/gatchat/gatppp.c:ppp_enter_phase() 2
2020-12-29T17:46:45.663809+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:45.678206+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:45.687980+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:45.699037+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:47.868830+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:47.882683+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:47.894244+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:47.905951+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:48.504930+00:00 ofonod[14775]: [info] Aux: < \r\n+QIND: "csq":25,99\r\n
2020-12-29T17:46:48.505188+00:00 ofonod[14775]: [debug] ../git/ofono/plugins/quectel.c:qind_notify() 0x61c628
2020-12-29T17:46:50.095776+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:50.110266+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:50.120253+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:50.131167+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:51.704665+00:00 ofonod[14775]: [info] Aux: < \r\n+QIND: "csq":23,99\r\n
2020-12-29T17:46:51.705042+00:00 ofonod[14775]: [debug] ../git/ofono/plugins/quectel.c:qind_notify() 0x61c628
2020-12-29T17:46:52.282690+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:52.297223+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:52.306618+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:52.317644+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:54.496212+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:54.510521+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:54.520345+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:54.530806+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:56.184871+00:00 ofonod[14775]: [info] Aux: < \r\n+QIND: "csq":24,99\r\n
2020-12-29T17:46:56.185248+00:00 ofonod[14775]: [debug] ../git/ofono/plugins/quectel.c:qind_notify() 0x61c628
2020-12-29T17:46:56.695432+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:56.709649+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:56.719249+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:56.730642+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:58.892675+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:58.906831+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:58.916575+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:58.927826+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:46:59.384684+00:00 ofonod[14775]: [info] Aux: < \r\n+QIND: "csq":23,99\r\n
2020-12-29T17:46:59.384940+00:00 ofonod[14775]: [debug] ../git/ofono/plugins/quectel.c:qind_notify() 0x61c628
2020-12-29T17:47:01.102683+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:01.116961+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:01.126991+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:01.137879+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:03.300654+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:03.314943+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:03.324671+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:03.335422+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:05.504971+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:05.519141+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:05.529068+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:05.540289+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:07.711106+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:07.725311+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:07.735339+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:07.746024+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:09.919313+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:09.933694+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:09.943509+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:09.954675+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:12.114445+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:12.128537+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:12.138288+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:12.149468+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:14.104858+00:00 ofonod[14775]: [info] Aux: < \r\n+QIND: "csq":25,99\r\n
2020-12-29T17:47:14.105105+00:00 ofonod[14775]: [debug] ../git/ofono/plugins/quectel.c:qind_notify() 0x61c628
2020-12-29T17:47:14.300751+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_generate_event: current state 9:OPENED
2020-12-29T17:47:14.300931+00:00 ofonod[14775]: [info] PPP: event: 3 (Close), action: 8224, new_state: 4 (CLOSING)
2020-12-29T17:47:14.301056+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_initialize_restart_count: current state 9:OPENED
2020-12-29T17:47:14.301270+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_send_terminate_request: current state 9:OPENED
2020-12-29T17:47:14.301583+00:00 ofonod[14775]: [info] PPP: ../git/ofono/gatchat/gatppp.c:ppp_enter_phase() 5
2020-12-29T17:47:14.306487+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_process_terminate_ack: current state 4:CLOSING
2020-12-29T17:47:14.306712+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_generate_event: current state 4:CLOSING
2020-12-29T17:47:14.306850+00:00 ofonod[14775]: [info] PPP: event: 11 (RTA), action: 802, new_state: 2 (CLOSED)
2020-12-29T17:47:14.307029+00:00 ofonod[14775]: [info] PPP: lcp: pppcp_this_layer_finished: current state 2:CLOSED
2020-12-29T17:47:14.307151+00:00 ofonod[14775]: [info] PPP: ../git/ofono/gatchat/gatppp.c:ppp_enter_phase() 0
2020-12-29T17:47:14.311087+00:00 ofonod[14775]: [info] PPP: ../git/ofono/gatchat/gatppp.c:ppp_dead()
2020-12-29T17:47:14.312168+00:00 ofonod[14775]: [debug] ../git/ofono/drivers/atmodem/gprs-context.c:ppp_disconnect() Reason: 1
2020-12-29T17:47:14.313283+00:00 ofonod[14775]: [debug] ../git/ofono/src/gprs.c:pri_activate_callback() 0x61e648
2020-12-29T17:47:14.315894+00:00 ofonod[14775]: [debug] ../git/ofono/src/gprs.c:pri_activate_callback() Activating context failed with error: Unknown error type
2020-12-29T17:47:14.342049+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:14.357138+00:00 ofonod[14775]: [info] Modem: < \r\nNO CARRIER\r\n
2020-12-29T17:47:14.364556+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:14.374056+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:14.389855+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:16.725909+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:16.740076+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:16.749869+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:16.760972+00:00 ofonod[14775]: [debug] ../git/ofono/src/modem.c:get_modem_property() modem 0x61c628 property SystemPath
2020-12-29T17:47:17.303504+00:00 ofonod[14775]: [info] Aux: < \r\n+QIND: "csq":23,99\r\n

  reply	other threads:[~2020-12-29 17:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAFiQ676fUqkEz9KbKUOY27o=DXTDtWRawVioPj+otEvJNryr8A@mail.gmail.com>
2020-12-29 14:09 ` Quectel EC200T USB: Problems with context activation Sergei Golubtsov
2020-12-29 15:55   ` Sergei Golubtsov
2020-12-29 17:56     ` Sergei Golubtsov [this message]
2020-12-29 21:49       ` Denis Kenzior
2020-12-30 10:00 Sergei Golubtsov
2020-12-30 16:42 ` Denis Kenzior
2020-12-31 12:35   ` Sergei Golubtsov
2020-12-31 16:20     ` Denis Kenzior
2021-01-01 14:10       ` Sergei Golubtsov
2021-01-01 16:27         ` Sergei Golubtsov
2021-01-02  9:52           ` Sergei Golubtsov
2021-01-04 17:43             ` Denis Kenzior
2021-01-05 21:34               ` Sergei Golubtsov
2021-01-06 19:52                 ` Denis Kenzior
     [not found] <CAFiQ675+H9QndW030-WkV2oivkVVChzcOTnKbaj+4VzW4k9P6w@mail.gmail.com>
2021-05-19 14:16 ` Denis Kenzior
2021-05-19 23:35   ` Sergei Golubtsov
2021-05-20 17:57     ` Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFiQ674XJtRUWH+5x39NqwdO=5J0tqAWnKKc7w118vgbUhh7Ew@mail.gmail.com' \
    --to=s.e.golubtsov@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.