Commit Graph

28 Commits

Author SHA1 Message Date
Róbert Kiss
13ec617d58 Make saving the configuration more robust (#594)
* feat: Make saving the configuration more robust

* parse backup user config before return

* fix some bug

* Add write-userconfig.js and invalid-config.bin

* throw exception if failed user config parsing

* Merge branch 'master' into feat-467-make-save-more-robust

* hide keymaps and macros if agent in restore mode

* fix Device name settings
2018-04-09 10:11:26 +02:00
Róbert Kiss
6ccf005750 feat: Handle privilege escalation gracefully even without PolicyKit (#599)
* feat: Handle privilege escalation gracefully even without PolicyKit

* build: upgrade tslint => 5.9.1

* build: add uhk-agent/package-lock.json

* feat: add error animation

* fix: display agent icon when user use ALT + TAB
2018-04-07 23:09:47 +02:00
Róbert Kiss
b25bc9d81d feat: show firmware version of the device/modules on firmware page (#589) 2018-03-23 07:10:02 +01:00
Róbert Kiss
6c7232a5ba feat(device): Make Agent able to unbrick bricked modules (#577) 2018-02-13 02:11:27 +01:00
László Monda
7c065f4368 Remove --buspal speed specification because it gets disrespected by the firmware anyways. 2018-01-14 22:13:31 +01:00
László Monda
2a3dfcb0d0 Improve firmware update messages. 2017-12-27 22:47:53 +01:00
László Monda
2b3462c33f Display retry firmware update messages with regular color because they're not errors. 2017-12-27 22:38:07 +01:00
László Monda
bbb6839f7e Fix Linux blhost path. 2017-12-25 21:48:41 +01:00
Róbert Kiss
c11658f1fc fix(device): check privilege on Linux (#519)
* fix(device): check privilege on Linux

* device connected if also have permission

* fix rules sh path

* refactor permission detection

* fic hasPermission condition

* fix return value
2017-12-21 20:33:40 +01:00
László Monda
3967593c9c Add get-module-state.js and the relevant device command id. 2017-12-15 02:58:51 +01:00
László Monda
3e7a0ed81a Query the combined ConfigSizes device property. Remove the deprecated HardwareConfigSize and UserConfigSize device properties. 2017-12-14 19:40:03 +01:00
László Monda
622b19045a Make write-hca.js work. 2017-12-13 02:56:08 +01:00
László Monda
2eb31603f1 Change the value of UsbCommandId_{GetDeviceState,SetTestLed,GetDebugBuffer,GetAdcValue,SetLedPwmBrightness}. 2017-12-12 18:49:40 +01:00
László Monda
6b60241180 Change the arguments of UsbCommandId_LaunchEepromTransfer and its id to 0x08. 2017-12-12 03:26:57 +01:00
László Monda
c296e6f49b Change UsbCommandId_ApplyConfig to 0x07. 2017-12-12 02:15:57 +01:00
László Monda
8420c83ebf Change UsbCommandId_WriteHardwareConfig and UsbCommandId_WriteUserConfig to 0x05 and 0x06. 2017-12-12 02:02:26 +01:00
László Monda
88d92130d5 Replace UsbCommandId_ReadHardwareConfig and UsbCommandId_ReadUserConfig with UsbCommandId_ReadConfig. 2017-12-12 01:24:29 +01:00
László Monda
0454dfd4d8 Change UsbCommandId_SendKbootCommandToModule from 0x13 to 0x03. 2017-12-11 22:16:28 +01:00
László Monda
27988f0e6b Change UsbCommandId_JumpToModuleBootloader from 0x12 to 0x02. 2017-12-11 21:46:06 +01:00
Róbert Kiss
40b72e8903 feat(scripts): Add write-userconfig (#511) 2017-12-09 20:37:14 +01:00
Róbert Kiss
2d416e7668 fix(device): use module import in uhk-usb (#509)
* fix(device): use module import in uhk-usb

* fix getTransferBuffers import
2017-12-09 18:02:39 +01:00
Róbert Kiss
297fd3be79 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
2017-11-27 22:12:43 +01:00
Róbert Kiss
0c30eccaca feat(device): Read only filled user configuration and fix app close on mac (#486)
* feat(device): Save user configuration length

* feat(device): Read only filled user configuration from EEPROM

* fix(agent): Close device connections and quit from app on Mac
2017-11-02 23:06:53 +01:00
Róbert Kiss
1f634f98f3 fix(usb): remove extra first 0 from USB transfer data 2017-10-30 20:35:41 +01:00
Róbert Kiss
cdc4a169de feat(config): Add deviceName to the user config (#474)
* add device name to configuration

* feat(config): Rename user configuration

* style: fix tslint error

* test: Fix unit tests

* test: Add UserConfiguration device name test

* set device name if faild the user-config read from device

* feat(device): Remove the first 0 from USB[W] dump
2017-10-28 20:16:59 +02:00
Róbert Kiss
01b07a3ab7 feat(device): Wait for read user/hardware config until device is ready (#443)
* feat(device): Wait for read user/hardware config until device is ready

* ci: remove uhk-web test runners until not I will fix the chome on mac
2017-10-14 00:55:16 +02:00
Róbert Kiss
0e5d6d1a25 refactor(device): Rename UserConfigSize => MaxUserConfigSize (#436)
Rename SystemPropertyIds.UserConfigSize => SystemPropertyIds.MaxUserConfigSize because it better describe which date will return from device
2017-10-09 23:20:06 +02:00
Róbert Kiss
9294bede50 feat(config): Read / write hardware configuration area (#423)
* add write-hca.js

* refactor: Move config serializer into the uhk-common package

* refactor: Move getTransferBuffers into the uhk-usb package

* refactor: delete obsoleted classes

* build: add uhk-usb build command

* refactor: move eeprom transfer to uhk-usb package

* fix: Fix write-hca.js

* feat: load hardware config from the device and

* style: fix ts lint errors

* build: fix rxjs dependency resolve

* test: Add jasmine unit test framework to the tet serializer

* fix(user-config): A "type": "basic", properties to the "keystroke" action types

* feat(usb): set chmod+x on write-hca.js

* feat(usb): Create USB logger

* style: Fix type

* build: Add chalk to dependencies.

Chalk will colorize the output
2017-09-26 16:57:27 +00:00