mirror of
https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800.git
synced 2026-07-27 19:56:23 +00:00
Update README, add new version code of IP5306
This commit is contained in:
@@ -5,11 +5,12 @@
|
||||
|
||||
<h2 align = "left">Product 📷:</h2>
|
||||
|
||||
| Examples | Product Link | Schematic | Status | Recommended level |
|
||||
| :---------------------------------------: | :----------------------------------------------------------------: | :---------------------------------------------------------: | :------: | :---------------: |
|
||||
| [SIM800L IP5306](./doc/SIM800L_IP5306.MD) | [Product link](https://www.aliexpress.com/item/33045221960.html) | [Schematic](./schematic/LilyGo-SIM800L-IP5306-20190610.pdf) | ✅ | ⭐ |
|
||||
| [SIM800L AXP192](./doc/SIM800L_AXP192.MD) | [Product link](https://www.aliexpress.com/item/4000959701330.html) | [Schematic](./schematic/LilyGo-SIM800L-PMU-20200409.pdf) | ✅ | ⭐⭐⭐ |
|
||||
| [SIM800C AXP192](./doc/SIM800C_AXP192.MD) | [Product link]() | [Schematic](./schematic/LilyGo-SIM800C-20200630.pdf) | **Soon** | ⭐⭐⭐ |
|
||||
| Examples | Product Link | Schematic | Status | Recommended level |
|
||||
| :------------------------------------------------: | :----------------------------------------------------------------: | :---------------------------------------------------------: | :------: | :---------------: |
|
||||
| [SIM800L IP5306 20190610](./doc/SIM800L_IP5306.MD) | [Product link](https://www.aliexpress.com/item/33045221960.html) | [Schematic](./schematic/LilyGo-SIM800L-IP5306-20190610.pdf) | ✅ | ⭐ |
|
||||
| [SIM800L IP5306 20200811](./doc/SIM800L_IP5306.MD) | [Waiting to be released]() | [Schematic]() | ✅ | ⭐⭐ |
|
||||
| [SIM800L AXP192 20200327](./doc/SIM800L_AXP192.MD) | [Product link](https://www.aliexpress.com/item/4000959701330.html) | [Schematic](./schematic/LilyGo-SIM800L-PMU-20200409.pdf) | ✅ | ⭐⭐⭐ |
|
||||
| [SIM800C AXP192 20200609](./doc/SIM800C_AXP192.MD) | [Product link](https://pt.aliexpress.com/item/4001274909689.html) | [Schematic](./schematic/LilyGo-SIM800C-20200630.pdf) | **Soon** | ⭐⭐⭐ |
|
||||
|
||||
## Datasheet
|
||||
- [SIM800 AT Command](./datasheet/sim800_series_at_command_manual_v1.01.pdf)
|
||||
@@ -18,3 +19,16 @@
|
||||
- [IP5306](./datasheet/IP5306%20REG%20V1.4.pdf)
|
||||
|
||||
|
||||
## FAQ
|
||||
|
||||
### **If you are unable to download, please try the following steps, if it still does not work, please contact customer service**
|
||||
1. Open the serial monitor
|
||||
2. Short IO0 to GND
|
||||
3. Press the RESET button on the board, if the serial port communication is normal, then you should see
|
||||
```
|
||||
ets Jun 8 2016 00:22:57
|
||||
|
||||
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
|
||||
waiting for download
|
||||
```
|
||||
4. If you can see the above message, it means that the communication is normal, then all you need is to let it enter the waiting download mode, then you can click upload, usually it can solve the problem of not being able to download automatically
|
||||
@@ -6,15 +6,15 @@
|
||||
// #define SIM800L_IP5306_VERSION_20190610
|
||||
// #define SIM800L_AXP192_VERSION_20200327
|
||||
// #define SIM800C_AXP192_VERSION_20200609
|
||||
|
||||
// #define SIM800L_IP5306_VERSION_20200811
|
||||
|
||||
// #define TEST_RING_RI_PIN //Note will cancel the phone call test
|
||||
|
||||
// #define ENABLE_SPI_SDCARD //Uncomment will test external SD card
|
||||
|
||||
// Define the serial console for debug prints, if needed
|
||||
// #define DUMP_AT_COMMANDS
|
||||
// #define TINY_GSM_DEBUG SerialMon
|
||||
#define DUMP_AT_COMMANDS
|
||||
#define TINY_GSM_DEBUG SerialMon
|
||||
|
||||
#include "utilities.h"
|
||||
|
||||
@@ -308,8 +308,10 @@ void loop()
|
||||
int i = 3;
|
||||
while (i--) {
|
||||
digitalWrite(LED_GPIO, LED_ON);
|
||||
modem.sendAT("+SPWM=0,1000,80");
|
||||
delay(500);
|
||||
digitalWrite(LED_GPIO, LED_OFF);
|
||||
modem.sendAT("+SPWM=0,1000,0");
|
||||
delay(500);
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
bool setupPMU()
|
||||
{
|
||||
bool en = true;
|
||||
Wire.begin(I2C_SDA, I2C_SCL);
|
||||
Wire.beginTransmission(IP5306_ADDR);
|
||||
Wire.write(IP5306_REG_SYS_CTL0);
|
||||
if (en) {
|
||||
@@ -67,8 +68,46 @@ bool setupPMU()
|
||||
#define LED_ON LOW
|
||||
#define LED_OFF HIGH
|
||||
|
||||
#elif defined(SIM800L_IP5306_VERSION_20200811)
|
||||
|
||||
|
||||
#define MODEM_RST 5
|
||||
#define MODEM_PWRKEY 4
|
||||
#define MODEM_POWER_ON 23
|
||||
#define MODEM_TX 27
|
||||
#define MODEM_RX 26
|
||||
|
||||
#define MODEM_DTR 32
|
||||
#define MODEM_RI 33
|
||||
|
||||
#define I2C_SDA 21
|
||||
#define I2C_SCL 22
|
||||
#define LED_GPIO 13
|
||||
#define LED_ON HIGH
|
||||
#define LED_OFF LOW
|
||||
|
||||
#define IP5306_ADDR 0x75
|
||||
#define IP5306_REG_SYS_CTL0 0x00
|
||||
|
||||
// setPowerBoostKeepOn
|
||||
bool setupPMU()
|
||||
{
|
||||
bool en = true;
|
||||
Wire.begin(I2C_SDA, I2C_SCL);
|
||||
Wire.beginTransmission(IP5306_ADDR);
|
||||
Wire.write(IP5306_REG_SYS_CTL0);
|
||||
if (en) {
|
||||
Wire.write(0x37); // Set bit1: 1 enable 0 disable boost keep on
|
||||
} else {
|
||||
Wire.write(0x35); // 0x37 is default reg value
|
||||
}
|
||||
return Wire.endTransmission() == 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#error "Please select the corresponding model"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user