feat(device): flash device firmware from Agent (#499)

* add dataModelVersion, usbProtocolVersion, slaveProtocolVersion

* read the package.json at appstart

* flash firmware

* update firmware

* fix extra resource path

* fix import modules

* update lock files

* fix imports

* terminal window

* exclude tmp folder from git repo

* ok button

* auto scroll in xterm

* fix maxTry count calculation

* optimize logging

* optimize timeout

* readSync

* Add extra delay

* fix async call

* fix error message in log

* fix ok button disable state

* retry

* list devices

* close device after reenumeration

* retry snooze

* kboot maxtry 10

* retry 100

* remove deprecated toPayload ngrx helper

* flash firmware with custom file

* fix tslint
This commit is contained in:
Róbert Kiss
2017-11-27 22:12:43 +01:00
committed by László Monda
parent f608791a09
commit 297fd3be79
52 changed files with 3914 additions and 894 deletions

View File

@@ -1,7 +1,12 @@
import { CommandLineArgs } from './command-line-args';
import { VersionInformation } from './version-information';
export interface AppStartInfo {
commandLineArgs: CommandLineArgs;
deviceConnected: boolean;
hasPermission: boolean;
/**
* This property contains the version information of the deployed agent components
*/
agentVersionInfo: VersionInformation;
}

View File

@@ -3,3 +3,4 @@ export * from './notification';
export * from './ipc-response';
export * from './app-start-info';
export * from './configuration-reply';
export * from './version-information';

View File

@@ -0,0 +1,7 @@
export interface VersionInformation {
version: string;
dataModelVersion: string;
usbProtocolVersion: string;
slaveProtocolVersion: string;
firmwareVersion: string;
}

View File

@@ -24,6 +24,9 @@ class Device {
public static readonly saveUserConfigurationReply = 'device-save-user-configuration-reply';
public static readonly loadConfigurations = 'device-load-configuration';
public static readonly loadConfigurationReply = 'device-load-configuration-reply';
public static readonly updateFirmware = 'device-update-firmware';
public static readonly updateFirmwareReply = 'device-update-firmware-reply';
public static readonly startConnectionPoller = 'device-start-connection-poller';
}
export class IpcEvents {