Skip to content

Commit 850d830

Browse files
committed
Initialize MKR 1400 modem properly
1 parent fcadcdd commit 850d830

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

examples/Boards_GSM/TinyGSM_MKR1400/TinyGSM_MKR1400.ino

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,18 @@ void setup()
5959

6060
// Set GSM module baud rate
6161
SerialGSM.begin(115200);
62-
delay(3000);
62+
63+
pinMode(GSM_DTR, OUTPUT);
64+
digitalWrite(GSM_DTR, LOW);
65+
delay(5);
66+
67+
// Turn on the GSM module by triggering GSM_RESETN pin
68+
pinMode(GSM_RESETN, OUTPUT);
69+
digitalWrite(GSM_RESETN, HIGH);
70+
delay(100);
71+
digitalWrite(GSM_RESETN, LOW);
72+
73+
delay(1000);
6374

6475
// Restart takes quite some time
6576
// To skip it, call init() instead of restart()

0 commit comments

Comments
 (0)