Skip to content

Commit 1c34048

Browse files
authored
Merge pull request #2772 from particle-iot/fix/ppp-resume-on-warm-boot
[quectel] fixes PPP resume during warm boot
2 parents 983cc02 + b16eac2 commit 1c34048

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hal/network/ncp_client/quectel/quectel_ncp_client.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const int IMSI_MAX_RETRY_CNT = 10;
136136
const int CCID_MAX_RETRY_CNT = 2;
137137

138138
const int DATA_MODE_BREAK_ATTEMPTS = 5;
139-
const int PPP_ECHO_REQUEST_ATTEMPTS = 3;
139+
const int PPP_ECHO_REQUEST_ATTEMPTS = 10;
140140
const int CGDCONT_ATTEMPTS = 5;
141141

142142
const int COPS_MAX_RETRY_CNT = 3;
@@ -1573,7 +1573,10 @@ int QuectelNcpClient::enterDataMode() {
15731573
// Send data mode break
15741574
const char breakCmd[] = "+++";
15751575
muxerDataStream_->write(breakCmd, sizeof(breakCmd) - 1);
1576-
skipAll(muxerDataStream_.get(), 1000);
1576+
// XXX: EG91-NAX required 1000ms delay after +++ needs to be at least 1004ms to resolve a
1577+
// bug during warm boot where PPP LCP echo requests will not be sent out of the modem
1578+
// on the hardware UART interface. Setting 100ms higher based on Quectel's recommendation.
1579+
skipAll(muxerDataStream_.get(), (1000 + 100));
15771580

15781581
dataParser_.reset();
15791582
responsive = waitAtResponse(dataParser_, 1000, 500) == 0;

0 commit comments

Comments
 (0)