post #1
Hello
Trying. to. build. a. GPS tracker
problem: AT commands. no. response on serial monitor. it. looks like. a. micro. controller. try’s to. communicate. to sim7600. but. Sim doesn’t. respond i. tired. to. check. upon. sim on 2. different. computers. mac. and. pc - on. pc. drivers. installed. plugged. in. directly( just. sim7600 ). into. computer. and. and. AT. commands. were responsive (ok) when wired. entire. circuit sim was not. connected. to. computer just wired. to. a. circuit
( stand. alone). couldn’t execute AT. commands. Sim 7600. needs. adapter and i. suspect. problem has. to. do. with. adapter either. faulty. or. not. compatible diagram attached
Gear:
XIAO esp32 c6
Sim7600g-h & adapter ( photo)
Lipo. battery. chargerTP4056
Buck. converter
Motion Sensor SW 420.
wiring ( diagram attached)
battery. charger (3 y splits) TP405 6. out. i>>–> into lipo. and. buck. converter ( y split)
buck.converter(3 y splits) out. i>>–> into Sim7600
buck.k converter out. i>>–> into XIAO esp32 c6
buck. converter out. i>>–> into Motion sensor SW 420
XIAO esp32
D6 ( IX) out. >>–> into SIM. 7600 (RX)
D7 (RX) out.>>–> into. SIM 7600 (TX)
D3 Motion Sensor SW 420
code. for AT commands
Gound. for Sim7600. comes. from XIAO GND ( some. source says it. has. to. . done. like so)
code
#include <HardwareSerial.h>
// Use UART 1
HardwareSerial sim7600(1);
// Raw physical ESP32-C6 pins for the XIAO
const int RX_PIN = 17; // This is the pad labeled "D7"
const int TX_PIN = 16; // This is the pad labeled "D6"
void setup() {
Serial.begin(115200);
// The LED will blink, then stop here.
// It waits for you to open the Serial Monitor.
while(!Serial) { delay(10); }
Serial.println("=================================");
Serial.println("Direct Pin Routing Test Started");
Serial.println("=================================");
// Force the ESP32 to route UART to pins 17 and 16
sim7600.begin(115200, SERIAL_8N1, RX_PIN, TX_PIN);
}
void loop() {
Serial.println("\nSending AT...");
sim7600.println("AT");
delay(1000);
// Read any response from the SIM
while (sim7600.available()) {
Serial.write(sim7600.read());
}
// Give you a chance to type AT manually
if (Serial.available()) {
sim7600.write(Serial.read());
}
delay(2000);
}
#include <HardwareSerial.h>
// Use UART 1
HardwareSerial sim7600(1);
// Raw physical ESP32-C6 pins for the XIAO
const int RX_PIN = 17; // This is the pad labeled "D7"
const int TX_PIN = 16; // This is the pad labeled "D6"
void setup() {
Serial.begin(115200);
// The LED will blink, then stop here.
// It waits for you to open the Serial Monitor.
while(!Serial) { delay(10); }
Serial.println("=================================");
Serial.println("Direct Pin Routing Test Started");
Serial.println("=================================");
// Force the ESP32 to route UART to pins 17 and 16
sim7600.begin(115200, SERIAL_8N1, RX_PIN, TX_PIN);
}
void loop() {
Serial.println("\nSending AT...");
sim7600.println("AT");
delay(1000);
// Read any response from the SIM
while (sim7600.available()) {
Serial.write(sim7600.read());
}
// Give you a chance to type AT manually
if (Serial.available()) {
sim7600.write(Serial.read());
}
delay(2000);
}
Thank. you. for. your. help







