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
László Monda
f44202c0e7
Extract debug values to constants and compute USB interface callbacks per second.
2017-12-05 03:05:20 +01:00
László Monda
353c87d71a
Make uhk.js non-executable.
2017-12-04 03:07:08 +01:00
László Monda
7537e5b823
Add a number of properties to the user config that are related to mou… ( #501 )
...
* Add a number of properties to the user config that are related to mouse movement, LED brightness, data model versioning, and double tap switch layer timeout. Update firmware related version numbers.
* use default config if parse loaded config from device failed
* add asserts to the new user config fields
* separate user and hardware config parser
* fix indent
* fix user-config size read
2017-12-02 23:55:43 +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
László Monda
c9feb49529
Add update-all-firmwares.js
2017-11-17 01:02:31 +01:00
László Monda
4aae62e3a7
Add timer field to the debug script.
2017-11-12 14:45:40 +01:00
László Monda
1effc3c1dc
Update variable names according to firmware variables.
2017-11-11 16:28:04 +01:00
László Monda
a2fc30175d
Dump individual debug values in an easy to read fashion.
2017-11-09 18:59:04 +01:00
László Monda
42e39375d1
Rename HardwareConfiguration.hardwareId to deviceId and set it to 1 by default.
2017-11-09 01:05:42 +01:00
László Monda
3f26aa68fb
Rename USB scripts according to the recent USB command renames.
2017-11-08 23:19:21 +01:00
László Monda
4e8061eb63
Rename launchEepromTransfer to launchEepromTransferLegacy.
2017-11-08 23:15:47 +01:00
László Monda
f9e1d022f2
Slightly tweak USB command names.
2017-11-08 23:13:03 +01:00
László Monda
04b43896c5
Make the firmware updater scripts take module slot parameters instead of I2C addresses. Rename scripts from *slave* to *module*.
2017-11-08 18:27:45 +01:00
László Monda
9a5862b57c
Make update-slave-firmware expect a module slot name, too.
2017-11-08 03:47:51 +01:00
László Monda
ac5d6ba32a
Add firmware updater scripts from the firmware repo and the dependent blhost binaries.
2017-11-08 01:18:46 +01:00
László Monda
ee85f666ae
Delete deprecated scripts.
2017-11-08 00:42:32 +01:00
László Monda
5252ec3702
Increment the argument of jumpToSlaveBootloader now that it's been changed from UHK module driver id to slot id.
2017-11-06 00:29:24 +01:00
László Monda
a5c478d51c
Remove the unused scripts section of package.json and make user-config-json-to-bin.ts slightly simpler.
2017-11-04 17:45:26 +01:00
Róbert Kiss
78e27c3688
build: user-config-json-to-bin.ts runnable from other directory ( #489 )
...
* new setup
* make run able ts file from other directory
* do not build project
2017-11-04 17:26:34 +01:00
László Monda
6ab7bd9298
Read bytes 1-2 instead of bytes 0-1 now that the firmare uses the status byte as expected.
2017-11-04 02:06:01 +01:00
László Monda
2ae7abe440
Utilize ts-node to run user-config-json-to-bin.ts. Remove the lint pre-commit hook because I couldn't commit with git.
2017-11-03 00:33:37 +01:00
Róbert Kiss
f6ea327813
build(usb): run chmod u+x after build ( #487 )
2017-11-02 23:20:53 +01:00
Róbert Kiss
e394f8483e
build: Add watch script to usb module
2017-11-02 20:20:14 +01:00
Róbert Kiss
009dd8e963
fix(usb): user-config-json-to-bin compile
2017-11-02 19:56:21 +01:00
László Monda
7ab55e9ac5
Move user-config-json-to-bin.ts to the usb package and use import instead of require.
2017-11-02 17:43:29 +01:00
László Monda
3f78cc1340
Add script to test hidapi stability by using readSync() calls.
2017-10-31 20:08:33 +01:00
Róbert Kiss
053352467d
build: platform specific builds ( #480 )
...
* build: upgrade electron-builder and updater
* build: pack or publish managed by ENV
* fix typo
* ci: appveyor y64 build
* style: fix indent in release.js
* build: upgrade package version
* build: upgrade node-hid => 0.5.7
* build: upgrade node-hid => 0.5.7
* build: setup new release script
* build: setup new release script
2017-10-29 00:52:09 +02:00
Róbert Kiss
bd49e26978
build: upgrade node to 8.8.1 ( #471 )
...
* build: upgrade to nodejs 8.8.1 and npm 5.5.1
* ci: upgrade the npm to the latest version in ci files
* build: remove duplication from clean script
2017-10-27 00:44:55 +02:00
László Monda
133f8be370
Rename send-kboot-command.js to send-kboot-command-to-slave.js
2017-10-23 22:23:00 +02:00
László Monda
7661700457
Rename jump-to-bootloader.js to reenumerate.js and make it able to reenumerate as any UHK USB product ID.
2017-10-23 16:48:09 +02:00
László Monda
1b22a2e739
Rename send-kboot-reset.js to send-kboot-command.js and generalize it by allowing various KBOOT commands to be sent.
2017-10-23 01:13:36 +02:00
László Monda
1a0fa5b5ba
Add send-kboot-reset.js and add the new USB command ID to uhk.js
2017-10-22 02:13:08 +02:00
László Monda
ce91d88448
Don't dump transfered payloads in jump-to-{slave-}bootloader.js
2017-10-21 03:09:47 +02:00
László Monda
7c7fde6d30
Don't create a HID object out of the bootloader device because that makes blhost unable to connect to it for some reason even if jump-to-bootloader.js calls device.close() before it exits.
2017-10-20 00:10:08 +02:00
László Monda
f7cdbbb5e0
Make jump-to-bootloader.js able to reenumerate the UHK as BusPal proxy.
2017-10-17 01:27:01 +02:00
László Monda
75e3995276
Add jump-to-slave-bootloader.js
2017-10-17 01:10:36 +02:00
László Monda
05b3402765
Send bootloader timeout to the bootloader via USB.
2017-10-16 23:31:22 +02:00
László Monda
5764189945
Delete the deprecated readMergeSensor USB command and the related read-merge-sensor.js test script.
2017-10-15 02:58:08 +02:00
László Monda
2896c9c60e
Display isEepromBusy, areHalvesMerged, and isLeftHalfConnected states.
2017-10-15 02:56:45 +02:00
József Farkas
50e0b64f6e
Upgrade to ngrx v4 ( #378 )
...
* Update ngrx to v4
* package.json files
* release: Remove zadic references from release script
* fix(user-config): Fix user-config loading
* build: Lock package dependencies
* build: fix app version
* ci: remove build:test step
* fix(user-config): Revert switch-keymap-action modifications
* test(user-config): xit keystroke-action test
* fix(user-config): Fix user config loading
* fix(user-config): Fix user config loading
2017-10-08 18:31:16 +02:00
László Monda
85bc5b94e1
Add read-keyboard-state.js
2017-10-05 21:53:32 +02:00
László Monda
15a56659b6
Add script.
2017-10-05 02:46:49 +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
László Monda
1122784bdb
Fix script.
2017-09-19 01:08:53 +02:00
Róbert Kiss
96e968729d
feat(device): Read user config from eeprom ( #413 )
...
* feat(device): Read user config from eeprom
* read data from eeprom
* fix user config serialization
* fix device connected detection
* not allow override default config is eeprom is empty
* add error handling to eeprom parsing
* colorize log output
* add USB[T] feature
* add class name to USB[T] log
* remove redundant error log msg
* Add USB[T] to Apply user config
2017-09-17 12:45:20 +00:00
Róbert Kiss
d621b1e5e6
feat(device): Write user configuration into the eeprom ( #411 )
...
* feat(device): Write user configuration into the eeprom
* when save user config settings wait until is not keyboard busy
2017-09-14 22:13:00 +00:00
László Monda
88a04454ae
Ignore HID exception which gets thrown when the bootloader is already up. Remove noisy messages.
2017-09-06 21:57:46 +02:00
László Monda
d7e820bc1f
Add comment regarding the commented out workaround for node-hid issue 187.
2017-09-06 21:37:46 +02:00