Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't downgrade earlier than 11.0 #2361

Open
yigitkonur opened this issue Nov 27, 2024 · 6 comments
Open

Can't downgrade earlier than 11.0 #2361

yigitkonur opened this issue Nov 27, 2024 · 6 comments

Comments

@yigitkonur
Copy link

I'm using the latest Agent but need to downgrade earlier firmwares for compability with BT-500 but cant downgrade anything earlier than 11.0 - is there any workaround?

Here is the logs:

Start flashing firmware
[DeviceService] Operating system: Darwin 24.1.0 arm64
[DeviceService] Agent version: 4.2.1
[DeviceService] New firmware version: 10.6.0
[DeviceService] New firmware user config version: 6.0.0
[DeviceService] stop poll UHK Device
[DeviceService] stopped poll UHK Device
[DeviceOperation] right module deviceProtocolVersion: 4.10.0
[DeviceOperation] Read "leftHalf" version information
[DeviceOperation] Read "leftHalf" repo information
[DeviceOperation] Read "leftHalf" firmware checksum
[DeviceService] UHK Device firmware upgrade starts: {"id":2,"name":"UHK 60 v2","vendorId":"0x1D50","keyboardPid":"0x6124","bootloaderPid":"0x6123","buspalPid":"0x6121"}
[DeviceService] Device right firmware version: 10.4.0
[UhkOperations] Start flashing right firmware
[UhkOperations] Reenumerate bootloader
[UhkHidDevice] Start reenumeration, mode: Bootloader, timeout: 5000ms
[UhkHidDevice] Could not find reenumerated device: Bootloader. Waiting...
[UhkHidDevice] Available devices changed.
[UhkHidDevice] Removed: {"vendorId":"0x1D50","productId":"0x6124","path":"DevSrvsID:4295263034","serialNumber":"","manufacturer":"Ultimate Gadget Laboratories","product":"UHK 60 v2","release":258,"interface":0,"usagePage":65280,"usage":1}
[UhkHidDevice] Removed: {"vendorId":"0x1D50","productId":"0x6124","path":"DevSrvsID:4295263035","serialNumber":"","manufacturer":"Ultimate Gadget Laboratories","product":"UHK 60 v2","release":258,"interface":2,"usagePage":12,"usage":1}
[UhkHidDevice] Removed: {"vendorId":"0x1D50","productId":"0x6124","path":"DevSrvsID:4295263042","serialNumber":"","manufacturer":"Ultimate Gadget Laboratories","product":"UHK 60 v2","release":258,"interface":3,"usagePage":1,"usage":128}
[UhkHidDevice] Removed: {"vendorId":"0x1D50","productId":"0x6124","path":"DevSrvsID:4295263038","serialNumber":"","manufacturer":"Ultimate Gadget Laboratories","product":"UHK 60 v2","release":258,"interface":1,"usagePage":1,"usage":6}
[UhkHidDevice] Removed: {"vendorId":"0x1D50","productId":"0x6124","path":"DevSrvsID:4295263044","serialNumber":"","manufacturer":"Ultimate Gadget Laboratories","product":"UHK 60 v2","release":258,"interface":4,"usagePage":1,"usage":2}
[UhkHidDevice] Reenumerating devices
[UhkHidDevice] Device communication closing.
[UhkHidDevice] Device communication closed.
[UhkOperations] Waiting for bootloader
[UhkOperations] Flash security disable
[UhkOperations] Flash erase region
[UhkOperations] Read RIGHT firmware from file
[UhkOperations] Write memory
[UhkOperations] Reset bootloader
[UhkOperations] Close communication channels
[UhkOperations] Right firmware successfully flashed
[DeviceService] Waiting for keyboard
[UhkHidDevice] Available devices changed.
[UhkHidDevice] Added: {"vendorId":"0x1D50","productId":"0x6124","path":"DevSrvsID:4295263211","serialNumber":"","manufacturer":"Ultimate Gadget Laboratories","product":"UHK 60 v2","release":258,"interface":2,"usagePage":12,"usage":1}
[UhkHidDevice] Added: {"vendorId":"0x1D50","productId":"0x6124","path":"DevSrvsID:4295263201","serialNumber":"","manufacturer":"Ultimate Gadget Laboratories","product":"UHK 60 v2","release":258,"interface":3,"usagePage":1,"usage":128}
[UhkHidDevice] Added: {"vendorId":"0x1D50","productId":"0x6124","path":"DevSrvsID:4295263203","serialNumber":"","manufacturer":"Ultimate Gadget Laboratories","product":"UHK 60 v2","release":258,"interface":0,"usagePage":65280,"usage":1}
[UhkHidDevice] Added: {"vendorId":"0x1D50","productId":"0x6124","path":"DevSrvsID:4295263205","serialNumber":"","manufacturer":"Ultimate Gadget Laboratories","product":"UHK 60 v2","release":258,"interface":1,"usagePage":1,"usage":6}
[UhkHidDevice] Used device: {"vendorId":"0x1D50","productId":"0x6124","path":"DevSrvsID:4295263203","serialNumber":"","manufacturer":"Ultimate Gadget Laboratories","product":"UHK 60 v2","release":258,"interface":0,"usagePage":65280,"usage":1}
[DeviceOperation] right module deviceProtocolVersion: 4.10.0
[DeviceOperation] Read "leftHalf" version information
[DeviceOperation] Read "leftHalf" repo information
[DeviceOperation] Read "leftHalf" firmware checksum
[DeviceService] Skip user config saving because user config version is newer than what firmware supports
[DeviceService] Left module firmware version: 10.2.0
[DeviceService] Current left module firmware checksum: a08c5025a8ccbed01fcf071d7545253d
[DeviceService] New left module firmware checksum: a08c5025a8ccbed01fcf071d7545253d
[DeviceService] Skip left firmware upgrade.
[SmartMacroService] start download firmware documentation {"firmwareGitRepo":"UltimateHackingKeyboard/firmware","firmwareGitTag":"v10.6.0"}
[SmartMacroService] firmware documentation downloaded
[SmartMacroService] reference manual downloaded
[DeviceOperation] right module deviceProtocolVersion: 4.10.0
[DeviceOperation] Read "leftHalf" version information
[DeviceOperation] Read "leftHalf" repo information
[DeviceOperation] Read "leftHalf" firmware checksum
[SmartMacroCopy] start
[SmartMacroCopy] copy {"destination":"/Users/yigit/Library/Application Support/uhk-agent/smart-macro-docs/UltimateHackingKeyboard/firmware/v10.6.0","smartMacroDocFirmwarePath":"/var/folders/x2/883gvjxs5jn8g92nqjl4qbrr0000gn/T/tmp-16300-QAXUDnXA3xcZ/doc"}
[DeviceService] updateFirmware error {"message":"ENOENT: no such file or directory, lstat '/var/folders/x2/883gvjxs5jn8g92nqjl4qbrr0000gn/T/tmp-16300-QAXUDnXA3xcZ/doc-dev'","stack":"Error: ENOENT: no such file or directory, lstat '/var/folders/x2/883gvjxs5jn8g92nqjl4qbrr0000gn/T/tmp-16300-QAXUDnXA3xcZ/doc-dev'"}
[DeviceOperation] right module deviceProtocolVersion: 4.10.0
[DeviceOperation] Read "leftHalf" version information
[DeviceOperation] Read "leftHalf" repo information
[DeviceOperation] Read "leftHalf" firmware checksum
[DeviceService] start poll UHK Device
ENOENT: no such file or directory, lstat '/var/folders/x2/883gvjxs5jn8g92nqjl4qbrr0000gn/T/tmp-16300-QAXUDnXA3xcZ/doc-dev'

@mondalaci
Copy link
Member

Please downgrade Agent before downgrading your firmware. Look for the Agent version, which contains the desired firmware version bundled. See https://github.com/UltimateHackingKeyboard/agent/releases

I'm closing this issue, but feel free to follow up.

@yigitkonur
Copy link
Author

Unfortunately, it does not allow to flash firmware due to new config schema implemented on newer releases.

CleanShot 2024-11-28 at 14 00 21@2x

@mondalaci
Copy link
Member

@ert78gb Please help with this issue.

@mondalaci mondalaci reopened this Nov 28, 2024
@mondalaci
Copy link
Member

@yigitkonur As it turns out, your use case is unsupported, but there's a way.

While running the old Agent version, short the reset pads and click on the Fix Device button in Agent, which will flash the old firmware version bundled with the old Agent version. You'll have to reset and recreate your configuration afterward.

@yigitkonur
Copy link
Author

Thanks for workaround! I dont have enough equipments to do it for now but will appreciate if Robert (@ert78gb) can push an update on agents to allow new agents to downgrade on new configs.

@mondalaci
Copy link
Member

You only need a screwdriver and a wire to short the pads. Nobody else has requested this feature so I'm not sure we'll implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants