Comments (1)
This issue seems to be specific to the lilygo board since it needs to power up the modem using a sequence of button press, I have implemented that and now it works. Here is the function for your reference:
#include "driver/gpio.h"
// TTGO T-Call pin definitions
#define MODEM_RST GPIO_NUM_5
#define MODEM_PWKEY GPIO_NUM_4
#define MODEM_POWER_ON GPIO_NUM_23
#define MODEM_TX GPIO_NUM_27
#define MODEM_RX GPIO_NUM_26
#define I2C_SDA GPIO_NUM_21
#define I2C_SCL GPIO_NUM_22
void enable_pwrkey(void) {
ESP_LOGI(TAG, "Enabling PWRKEY");
ESP_ERROR_CHECK(gpio_set_direction(MODEM_RST, GPIO_MODE_OUTPUT));
ESP_ERROR_CHECK(gpio_set_direction(MODEM_PWKEY, GPIO_MODE_OUTPUT));
ESP_ERROR_CHECK(gpio_set_direction(MODEM_POWER_ON, GPIO_MODE_OUTPUT));
ESP_ERROR_CHECK(gpio_set_level(MODEM_RST, 1)); // RESET high
ESP_ERROR_CHECK(gpio_set_level(MODEM_POWER_ON, 1)); // PWKEY high
ESP_ERROR_CHECK(gpio_set_level(MODEM_PWKEY, 1)); // PWRKEY high
vTaskDelay(100 / portTICK_PERIOD_MS);
ESP_ERROR_CHECK(gpio_set_level(MODEM_PWKEY, 0)); // PWRKEY low
vTaskDelay(1000 / portTICK_PERIOD_MS);
ESP_ERROR_CHECK(gpio_set_level(MODEM_PWKEY, 1)); // PWRKEY high
vTaskDelay(6000 / portTICK_PERIOD_MS);
//
//
// ESP_ERROR_CHECK(gpio_set_pull_mode(GPIO_NUM_27, GPIO_PULLUP_ONLY));
ESP_LOGI(TAG, "Enabling PWRKEY ... done");
}
from esp-protocols.
Related Issues (20)
- websocket client decided to send first a FIN then a continuation, which is not allowed?! (IDFGH-11736) HOT 5
- When ECHO is deactivated and try to send random AT command AT+CSQ for example using dce->at(). at() returns OK but the response is corrupted. (IDFGH-11753) HOT 1
- Define a subdomain using mDNS (IDFGH-11757) HOT 4
- problems migrating ESP-Modem from 2020-version to 1.0.5 (IDFGH-11815) HOT 9
- Feature Request: Full Response from ESP32 AT SIM Commands (IDFGH-11834)
- ESP_MODEM_MODE_COMMAND fires IP_EVENT_PPP_LOST_IP only after 120 seconds (IDFGH-11871) HOT 4
- OTA fails due to many "HW FIFO Overflows" (IDFGH-11892) HOT 2
- set APN after esp_modem_new_dev() is called? (IDFGH-11898) HOT 2
- Broken link (IDFGH-11903) HOT 1
- How should modem disconnects/reconnects be handled in unstable connections? (IDFGH-11995) HOT 7
- Integrate UART_WAKEUP as part of the esp modem (IDFGH-12062) HOT 7
- Compatibility of Simple CMUX Client Library with CAVLI C16QS Modem (IDFGH-12078) HOT 19
- IPV6 for PDP Context (IDFGH-12084) HOT 2
- FTP client to send and receive files (PACMAN-797) (IDFGH-12110) HOT 3
- [BUG] Websocket Target when uri "ws://echo.websocket.org" (IDFGH-12192) HOT 2
- When using esp_modem components, cdc_acm: Incorrect number of bytes transferred error occasionally occurs after networking to the Internet (IDFGH-12227) HOT 1
- [BUG] mDNS stops working with heavy UDP load (IDFGH-12307) HOT 2
- mDNS results in esp_netif_lwip log spam (IDFGH-12320) HOT 1
- Freezing of the ESP, triggering the WDT! (ESP-MODEM) (IDFGH-12332) HOT 3
- Response Issue in CMUX Mode (IDFGH-12431) HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-protocols.