Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: example-ublox-at-cellular-interface-ext example-ublox-cellular-driver-gen HelloMQTT ublox_new_driver_test ... more
Revision 9:a5389248c8d0, committed 2018-08-31
- Comitter:
- fahim.alavi@u-blox.com
- Date:
- Fri Aug 31 16:21:57 2018 +0500
- Parent:
- 8:e6f6bf43a5d1
- Commit message:
- Sara-R410m read block has start delay, adding it in library
Changed in this revision
| UbloxCellularDriverGen.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/UbloxCellularDriverGen.cpp Tue Jul 24 13:06:55 2018 +0000
+++ b/UbloxCellularDriverGen.cpp Fri Aug 31 16:21:57 2018 +0500
@@ -675,11 +675,12 @@
// of 100 ms (for short files)
timer.reset();
timer.start();
- timeLimit = FILE_BUFFER_SIZE * 4 / ((MBED_CONF_UBLOX_CELL_BAUD_RATE / 8) / 1000);
- if (timeLimit < 100) {
- timeLimit = 100;
- }
+
+ // Add startup delay
+ timeLimit = 200+ FILE_BUFFER_SIZE * 4 / ((MBED_CONF_UBLOX_CELL_BAUD_RATE / 8) / 1000);
+
sz_read = 0;
+
while ((sz_read < blockSize) && (timer.read_ms() < timeLimit)) {
ch = _at->getc();
if (ch >= 0) {
@@ -695,8 +696,8 @@
offset += sz_read;
_at->recv("OK");
} else {
- debug_if(_debug_trace_on, "blockSize %d but only received %d bytes\n", blockSize, sz_read);
- success = false;
+ debug_if(_debug_trace_on, "blockSize %d but only received %d bytes, configured retry\n", blockSize, sz_read);
+ //success = false;
}
} else {
success = false;