Skip to content
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

E3372: timedout while waiting 'OK' in response to 'AT+CSQ' #143

Open
mghadam opened this issue May 5, 2021 · 2 comments
Open

E3372: timedout while waiting 'OK' in response to 'AT+CSQ' #143

mghadam opened this issue May 5, 2021 · 2 comments

Comments

@mghadam
Copy link

mghadam commented May 5, 2021

image

I am getting this error with Huawei E3372s-153:

[2021-05-05 18:09:05] ERROR[8077]: chan_dongle.c:522 do_monitor_phone: [dongle4] timedout while waiting 'OK' in response to 'AT+CSQ'

So chan_dongle constantly resets the dongle and fails at this error.

I see a proper response from AT+CSQ. However, the output of this command is not consistent and it occasionally contains RSSI / HCSQ lines like this:

$ echo AT+CSQ | atinout - /dev/ttyUSB14 -

^RSSI:26

^HCSQ:"LTE",60,52,106,24

+CSQ: 28,99


OK

$ echo AT+CSQ | atinout - /dev/ttyUSB14 -

+CSQ: 26,99


OK

I looked at chan_dongle.c:522 line and it is this code:

if (!at_wait (fd, &t))
{
    ast_mutex_lock (&pvt->lock);
    ecmd = at_queue_head_cmd (pvt);
    if(ecmd)
    {
        ast_log (LOG_ERROR, "[%s] timedout while waiting '%s' in response to '%s'\n", dev, at_res2str (ecmd->res), at_cmd2str (ecmd->cmd));
        goto e_cleanup;
    }
    at_enqueue_ping(&pvt->sys_chan);
    ast_mutex_unlock (&pvt->lock);
    continue;
}

Any ideas how can I debug this error?

@shalzz
Copy link

shalzz commented Jul 28, 2021

Hi @mghadam

This is an issue with E3372 where it CSQ timesout while the dongle is being initialized but works fine after.
You can try my fork here with few AT commands disabled for E3372 after which the dongle works fine (at least for sms)

@mlundblad70
Copy link

Was this fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants