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

SIM7600 #5

Open
grivera90 opened this issue May 24, 2022 · 0 comments
Open

SIM7600 #5

grivera90 opened this issue May 24, 2022 · 0 comments

Comments

@grivera90
Copy link

grivera90 commented May 24, 2022

Hi!, i have a problem with sms example. In my code i´m use esp-idf v4.3.2 and ppp work OK, but when add the code for sms never take the semaphore here:

static esp_err_t esp_modem_dte_send_cmd(modem_dte_t *dte, const char *command, uint32_t timeout)
{
esp_err_t ret = ESP_FAIL;
modem_dce_t *dce = dte->dce;
MODEM_CHECK(dce, "DTE has not yet bind with DCE", err);
MODEM_CHECK(command, "command is NULL", err);
esp_modem_dte_t esp_dte = __containerof(dte, esp_modem_dte_t, parent);
/
Calculate timeout clock tick /
/
Reset runtime information /
dce->state = MODEM_STATE_PROCESSING;
/
Send command via UART /
uart_write_bytes(esp_dte->uart_port, command, strlen(command));
/
Check timeout */
MODEM_CHECK(xSemaphoreTake(esp_dte->process_sem, pdMS_TO_TICKS(timeout)) == pdTRUE, "process command timeout", err);
ret = ESP_OK;
err:
dce->handle_line = NULL;
return ret;
}

do you know whats the problem?.

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

No branches or pull requests

1 participant