phev-remote / phev-ttgo

13 stars 2 forks source link

Trying to make this work with LILYGO® TTGO T-SIM7000G Module ESP32-WROVER-B Chip #8

Open spadival opened 3 years ago

spadival commented 3 years ago

Since we do not have 2G network in Australia, I have been looking at the LILYGO® TTGO T-SIM7000G Module with ESP32-WROVER-B Chip

However, the modem comms examples are all Arduino based C++ . Can someone help me translate this to C?

For example,

void modemPowerOn() { pinMode(PWR_PIN, OUTPUT); digitalWrite(PWR_PIN, LOW); delay(1000); //Datasheet Ton mintues = 1S digitalWrite(PWR_PIN, HIGH); }

Since I am not a ESP32 programmer, I have no idea what's the corresponding command to incorporate to power on the modem in pppos_client_task(). I am assuming the AT commands will not change much (we'll cross that bridge later).

http://www.lilygo.cn/prod_view.aspx?TypeId=50033&Id=1246&FId=t3:50033:3