mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 15:22:20 +02:00
gnss: increase upload timeout to 10 seconds
The timeout for QFUPL defaults to 5 seconds which is about how long it takes to upload data under ideal circumstances. I'm not sure if this will actually have an effect, the docs say "<timeout> The time waiting for data to be inputted to USB/UART. The default value is 5. Unit: s." which could be the time before the first byte is received.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
#define BUFFER_SIZE 256
|
||||
#define UPLOAD_DELAY_US 10000
|
||||
#define UPLOAD_TIMEOUT_S 10
|
||||
#define RESCHEDULE_IN_SECS 30
|
||||
|
||||
static void gnss_step(struct EG25Manager *manager);
|
||||
@@ -280,8 +281,8 @@ static void init_assistance_data_upload_start(struct EG25Manager *manager,
|
||||
lseek(manager->gnss_assistance_fd, 0, SEEK_SET);
|
||||
|
||||
/* Start upload */
|
||||
g_snprintf(value, BUFFER_SIZE, "\"RAM:%s\",%ld\r\n",
|
||||
manager->gnss_assistance_file, size);
|
||||
g_snprintf(value, BUFFER_SIZE, "\"RAM:%s\",%ld,%d",
|
||||
manager->gnss_assistance_file, size, UPLOAD_TIMEOUT_S);
|
||||
g_message("Initiate GNSS assistance data upload: %s", value);
|
||||
at_append_command(manager, "QFUPL", NULL, value, NULL,
|
||||
init_assistance_data_upload_ready);
|
||||
|
Reference in New Issue
Block a user