Róbert Kiss
c4d7318686
chore: make firmware update log shorter ( #675 )
...
* chore: add lodash to the roor package.json
* chore: make firmware update log shorter
2018-06-13 10:07:40 +02:00
Róbert Kiss
83b9f0d1e9
fix: blhost wrapper return with Promise.reject if error code !== 0 ( #669 )
2018-06-07 23:38:27 +02:00
tenteen
82b76a9455
Fix left half timeout during fw update ( #567 ) ( #626 )
...
The snooze call is skipped in the try block when the command throws an
exception. As a result, the command tries maxTry times as fast as
possible.
The fix is to move the snooze call outside of the try block.
PS: #GotMyUHK
2018-06-07 22:50:18 +02:00
László Monda
65ea786358
Don't include os.platform into the firmware update log because os.type makes it practically redundant.
2018-05-26 17:13:10 +02:00
László Monda
1035837b3b
Fix lint error.
2018-05-22 15:29:48 +02:00
Róbert Kiss
18fc2e6b3f
fix: permission detection when device not plugged ( #653 )
2018-05-22 15:11:43 +02:00
László Monda
cdf3caee9e
Display device list at the beginning of the firmware update process.
2018-05-22 01:53:14 +02:00
László Monda
0a4d3a002e
Include operating system type to the firmware update log. Add a new tip to the firmware page.
2018-05-22 01:16:02 +02:00
Róbert Kiss
ab8ae31324
fix: permission detection on linux ( #651 )
2018-05-21 11:46:19 +02:00
Róbert Kiss
609aba856a
fix: permission detection on win and mac ( #650 )
2018-05-21 11:00:57 +02:00
Róbert Kiss
653465f0e0
feat: device recovery mode ( #642 )
...
* add new page and ipc processing
* refactor: remove unused references from uhk.js
* feat: add device recovery route
* refactor: device permission
* feat: write firmware update log to the screen
* fix: xterm height
* feat: add reload button to the recovery page
* refactor: deviceConnectionState.hasPermission in appStartInfo
* refactor: use correct imports
* refactor: move .ok-button css class to the main style.scss
* feat: add bootload active route guard
* style: move RecoveryDeviceAction into new line
* feat: delete reload button
* feat: start device polling after device recovery
2018-05-19 17:22:46 +02:00
László Monda
eb97dd844f
Make the bootloader timeout of the reenumerate script specifiable.
2018-05-16 23:19:36 +02:00
László Monda
f29d64c803
Rename kbootKommandName to kbootCommandName.
2018-05-09 02:16:38 +02:00
László Monda
0385b0ce29
Simply write that the list of available devices is unchanged instead of always listing the devices.
2018-05-09 01:32:55 +02:00
Kristian Sloth Lauszus
04aa5236c2
The usage page and usage number was changed in 6f0b1adc14 ( #630 )
2018-05-06 21:38:40 +02:00
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