László Monda
010a23aaeb
Extract slaveI2cErrorBufferToString()
2018-01-15 01:07:23 +01:00
László Monda
c723fe2651
Simplify get-slave-i2c-errors.js by using padEnd()
2018-01-15 00:55:38 +01:00
László Monda
95caa58624
Utilize uhk.getUint* in get-slave-i2c-errors.js
2018-01-15 00:37:31 +01:00
László Monda
9089f088b6
Clean up get-left-firmware-version.js a bit.
2018-01-15 00:31:24 +01:00
László Monda
1aeb4e8326
Make get-left-firmware-version.js display module protocol version, too.
2018-01-15 00:07:30 +01:00
László Monda
96b9226adb
Fix script to display the correct firmware version.
2018-01-15 00:02:57 +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
c7baa00720
Add get-uptime.js
2018-01-14 18:33:14 +01:00
László Monda
5cdf2282f8
Add {get,set}-i2c-baud-rate.js
2018-01-14 18:15:50 +01:00
László Monda
89221faf60
Add set-i2c-baud-rate.js
2018-01-14 00:45:51 +01:00
László Monda
fdcf64d5c6
Only display minutes in the I2C error logger script.
2018-01-13 00:06:18 +01:00
László Monda
6c327ee414
Add I2C logger script.
2018-01-11 02:57:49 +01:00
László Monda
b6bdd1486c
Make update-module-firmware.js more robust and able to recover bricked modules (including the left half) by utilizing the newly added wait-for-kboot-idle.js
2018-01-10 03:15:19 +01:00
László Monda
bd5be98d99
Restore wdi-simple.exe and 50-uhk60-rules.cmd just in case.
2018-01-08 06:13:37 +01:00
László Monda
5341d953ff
Fix statusCodesToStrings map.
2018-01-07 05:21:08 +01:00
László Monda
bd9a2a0eeb
Make get-slave-i2c-errors.js display slave names and I2C error names.
2018-01-06 21:29:14 +01:00
László Monda
4c10954721
Add script which reads I2C errors.
2018-01-05 03:26:26 +01:00
László Monda
216793bbb8
Add get-{left,right}-firmware-version.js
2017-12-29 13:34:49 +01:00
László Monda
e3c65f77df
Rename getProperty to getDeviceProperty and getModuleProperties to getModuleProperty.
2017-12-29 13:23:58 +01:00
László Monda
dd973c80ea
Add install-win-driver-*.bat
2017-12-24 03:56:13 +01:00
László Monda
48574a121a
Move zadic-*.exe to packages/zadic
2017-12-24 03:35:13 +01:00
László Monda
969c36561b
Fix script name.
2017-12-15 04:33:10 +01:00
László Monda
ef0b0aa4ba
Add mass-updater script.
2017-12-15 04:25:28 +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
b8be1c965b
Fix typo: blink-led-pwm-brithness.js -> blink-led-pwm-brightness.js
2017-12-15 02:49:36 +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
cac74c7c5a
Add update-firmwares-and-configs.js and make update-all-firmwares.js apply and save the config into the EEPROM.
2017-12-14 02:31:01 +01:00
László Monda
9c66ea058b
Add the -u, or --overwrite-user-config argument to update-all-firmwares.js and make write-config.js able to read a specified config file.
2017-12-14 01:12:46 +01:00
László Monda
1be8d20d5f
Fix the name of the arm-specific directory of blhost.
2017-12-13 14:35:40 +01:00
László Monda
f8f1747ec9
Add the arm version of blhost and make getBlhostCmd() return architecture-specific blhost versions.
2017-12-13 14:32:21 +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
22c1fa641a
Merge branch 'master' of github.com:UltimateHackingKeyboard/agent into finalize-usb-protocol
2017-12-12 00:15:15 +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
László Monda
32fc4b3527
Change UsbCommandId_SetTestLed from 0x02 to 0x14
2017-12-11 21:22:13 +01:00
László Monda
8e121d88ab
Finalize the format of HardwareConfiguration. ( #514 )
2017-12-11 20:39:29 +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
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