nmpUpdate (Function) |
Top Previous Next |
This function is used to update the NMP device when new versions of the software are released. When called, it will start transferring an update file from the file system of the RTCU device to the NMP, and when the transfer is done (see navWaitEvent for event #10), the user is notified of the update. By using the "force" parameter, it can be controlled whether the update should be installed immediately or postponed until its next restart to avoid losing access to the NMP while driving. During the update process, the RTCU device cannot communicate with the NMP device. An "NMP Update Progress" event is raised when there are changes to the progress and/or status of the update. See also navWaitEvent for event # 10.
If the user declines an update or it fails, e.g. due to being shut down, the NMP navigation device will try to install it when the system is restarted.
The file used for the upgrade is usually supplied by Logic IO or its partners.
Input: filename : STRING The name and path of the file to transfer.
force : BOOL Determines whether the user is asked if the update should be installed or if it should be forced.
Returns: INT
Declaration: FUNCTION nmpUpdate : INT;
Example: INCLUDE rtcu.inc |